diff options
Diffstat (limited to 'ace/Asynch_IO.h')
-rw-r--r-- | ace/Asynch_IO.h | 46 |
1 files changed, 12 insertions, 34 deletions
diff --git a/ace/Asynch_IO.h b/ace/Asynch_IO.h index 1a8a27b0f05..8046494a3c5 100644 --- a/ace/Asynch_IO.h +++ b/ace/Asynch_IO.h @@ -224,10 +224,7 @@ public: ACE_HANDLE handle (void) const; // I/O handle used for reading. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, @@ -235,7 +232,7 @@ public: const void* act, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Read_Stream factory. + // ACE_Asynch_Read_Stream factory. virtual void complete (u_long bytes_transferred, int success, @@ -243,7 +240,6 @@ public: u_long error = 0); // ACE_Proactor will call this method when the read completes. - protected: u_long bytes_to_read_; // Bytes requested when the asynchronous read was initiated. @@ -318,10 +314,7 @@ public: ACE_HANDLE handle (void) const; // I/O handle used for writing. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, @@ -329,7 +322,7 @@ public: const void* act, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Write_Stream factory. + // ACE_Asynch_Write_Stream factory. virtual void complete (u_long bytes_transferred, int success, @@ -337,7 +330,6 @@ public: u_long error = 0); // ACE_Proactor will call this method when the write completes. - protected: u_long bytes_to_write_; // The number of bytes which were requested at the start of the // asynchronous write. @@ -404,10 +396,7 @@ public: friend class ACE_Asynch_Read_File; // The factory has special privileges. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, @@ -417,7 +406,7 @@ public: u_long offset_high, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Read_File factory. + // ACE_Asynch_Read_File factory. virtual void complete (u_long bytes_transferred, int success, @@ -481,10 +470,7 @@ public: friend class ACE_Asynch_Write_File; // The factory has special privileges. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, @@ -494,7 +480,7 @@ public: u_long offset_high, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Write_File factory. + // ACE_Asynch_Write_File factory. virtual void complete (u_long bytes_transferred, int success, @@ -570,10 +556,7 @@ public: ACE_HANDLE accept_handle (void) const; // I/O handle for the new connection. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE listen_handle, ACE_HANDLE accept_handle, @@ -582,7 +565,7 @@ public: const void* act, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Accept factory. + // ACE_Asynch_Accept factory. virtual void complete (u_long bytes_transferred, int success, @@ -590,7 +573,6 @@ public: u_long error = 0); // ACE_Proactor will call this method when the accept completes. - protected: u_long bytes_to_read_; // Bytes requested when the asynchronous read was initiated. @@ -692,10 +674,7 @@ public: u_long flags (void) const; // Flags which were passed into transmit file. - // protected: - // - // These two should really be protected. But sometimes it - // simplifies code to be able to "fake" a result. Use carefully. + protected: Result (ACE_Handler &handler, ACE_HANDLE socket, ACE_HANDLE file, @@ -708,7 +687,7 @@ public: const void *act, ACE_HANDLE event); // Constructor is protected since creation is limited to - // ACE_Asynch_Transmit_File factory. + // ACE_Asynch_Transmit_File factory. virtual void complete (u_long bytes_transferred, int success, @@ -716,7 +695,6 @@ public: u_long error = 0); // ACE_Proactor will call this method when the write completes. - protected: ACE_HANDLE socket_; // Network I/O handle. |