diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-16 15:47:52 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-16 15:47:52 +0000 |
commit | 9291869631de18936f908fa3fafb97becf8911bb (patch) | |
tree | ec08998b42cf100a3d9a939e9d8e7a16ee12ee00 /ace/Asynch_IO.h | |
parent | 8345bec77d13b5e0896a569dcb8ae6d099725aa8 (diff) | |
download | ATCD-9291869631de18936f908fa3fafb97becf8911bb.tar.gz |
added trailing $ to CVS keyword string
Diffstat (limited to 'ace/Asynch_IO.h')
-rw-r--r-- | ace/Asynch_IO.h | 198 |
1 files changed, 99 insertions, 99 deletions
diff --git a/ace/Asynch_IO.h b/ace/Asynch_IO.h index a931ef21b69..10ed146be52 100644 --- a/ace/Asynch_IO.h +++ b/ace/Asynch_IO.h @@ -1,5 +1,5 @@ /* -*- C++ -*- */ -// $Id: Asynch_IO.h,v +// $Id$ // ============================================================================ // @@ -82,10 +82,10 @@ public: // make sense only when doing file I/O. ACE_Asynch_Result (ACE_Handler &handler, - const void* act, - ACE_HANDLE event, - u_long offset = 0, - u_long offset_high = 0); + const void* act, + ACE_HANDLE event, + u_long offset = 0, + u_long offset_high = 0); // Constructor. virtual ~ACE_Asynch_Result (void); @@ -93,9 +93,9 @@ public: protected: virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0) = 0; + int success, + const void *completion_key, + u_long error = 0) = 0; // This is the key method. Subclasses will override this method to // call the correct callback on the handler. @@ -129,9 +129,9 @@ class ACE_Export ACE_Asynch_Operation // factor out this code. public: int open (ACE_Handler &handler, - ACE_HANDLE handle = ACE_INVALID_HANDLE, - const void *completion_key = 0, - ACE_Proactor *proactor = 0); + ACE_HANDLE handle = ACE_INVALID_HANDLE, + const void *completion_key = 0, + ACE_Proactor *proactor = 0); // Initializes the factory with information which will be used with // each asynchronous call. If (<handle> == ACE_INVALID_HANDLE), // <ACE_Handler::handle> will be called on the <handler> to get the @@ -176,8 +176,8 @@ public: // A do nothing constructor. int read (ACE_Message_Block &message_block, - u_long bytes_to_read, - const void *act = 0); + u_long bytes_to_read, + const void *act = 0); // This starts off an asynchronous read. Upto <bytes_to_read> will // be read and stored in the <message_block>. @@ -216,18 +216,18 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE handle, - ACE_Message_Block &message_block, - u_long bytes_to_read, - const void* act, - ACE_HANDLE event); + ACE_HANDLE handle, + ACE_Message_Block &message_block, + u_long bytes_to_read, + const void* act, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Read_Stream factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the read completes. protected: @@ -262,8 +262,8 @@ public: // A do nothing constructor. int write (ACE_Message_Block &message_block, - u_long bytes_to_write, - const void *act = 0); + u_long bytes_to_write, + const void *act = 0); // This starts off an asynchronous write. Upto <bytes_to_write> // will be written from the <message_block>. @@ -302,18 +302,18 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE handle, - ACE_Message_Block &message_block, - u_long bytes_to_write, - const void* act, - ACE_HANDLE event); + ACE_HANDLE handle, + ACE_Message_Block &message_block, + u_long bytes_to_write, + const void* act, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Write_Stream factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the write completes. protected: @@ -346,10 +346,10 @@ class ACE_Export ACE_Asynch_Read_File : public ACE_Asynch_Read_Stream // allows the user to specify an offset for the read. public: int read (ACE_Message_Block &message_block, - u_long bytes_to_read, - u_long offset = 0, - u_long offset_high = 0, - const void *act = 0); + u_long bytes_to_read, + u_long offset = 0, + u_long offset_high = 0, + const void *act = 0); // This starts off an asynchronous read. Upto <bytes_to_read> will // be read and stored in the <message_block>. The read will start // at <offset> from the beginning of the file. @@ -381,20 +381,20 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE handle, - ACE_Message_Block &message_block, - u_long bytes_to_read, - const void* act, - u_long offset, - u_long offset_high, - ACE_HANDLE event); + ACE_HANDLE handle, + ACE_Message_Block &message_block, + u_long bytes_to_read, + const void* act, + u_long offset, + u_long offset_high, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Read_File factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the read completes. }; }; @@ -416,10 +416,10 @@ public: // This class differs slightly from ACE_Asynch_Write_Stream as // it allows the user to specify an offset for the write. int write (ACE_Message_Block &message_block, - u_long bytes_to_write, - u_long offset = 0, - u_long offset_high = 0, - const void *act = 0); + u_long bytes_to_write, + u_long offset = 0, + u_long offset_high = 0, + const void *act = 0); // This starts off an asynchronous write. Upto <bytes_to_write> // will be write and stored in the <message_block>. The write will // start at <offset> from the beginning of the file. @@ -451,20 +451,20 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE handle, - ACE_Message_Block &message_block, - u_long bytes_to_write, - const void* act, - u_long offset, - u_long offset_high, - ACE_HANDLE event); + ACE_HANDLE handle, + ACE_Message_Block &message_block, + u_long bytes_to_write, + const void* act, + u_long offset, + u_long offset_high, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Write_File factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the write completes. }; }; @@ -486,9 +486,9 @@ public: // A do nothing constructor. int accept (ACE_Message_Block &message_block, - u_long bytes_to_read, - ACE_HANDLE accept_handle = ACE_INVALID_HANDLE, - const void *act = 0); + u_long bytes_to_read, + ACE_HANDLE accept_handle = ACE_INVALID_HANDLE, + const void *act = 0); // This starts off an asynchronous accept. The asynchronous accept // call also allows any initial data to be returned to the // <handler>. Upto <bytes_to_read> will be read and stored in the @@ -532,19 +532,19 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE listen_handle, - ACE_HANDLE accept_handle, - ACE_Message_Block &message_block, - u_long bytes_to_read, - const void* act, - ACE_HANDLE event); + ACE_HANDLE listen_handle, + ACE_HANDLE accept_handle, + ACE_Message_Block &message_block, + u_long bytes_to_read, + const void* act, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Accept factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the accept completes. protected: @@ -589,13 +589,13 @@ public: // A do nothing constructor. int transmit_file (ACE_HANDLE file, - Header_And_Trailer *header_and_trailer = 0, - u_long bytes_to_write = 0, - u_long offset = 0, - u_long offset_high = 0, - u_long bytes_per_send = 0, - u_long flags = 0, - const void *act = 0); + Header_And_Trailer *header_and_trailer = 0, + u_long bytes_to_write = 0, + u_long offset = 0, + u_long offset_high = 0, + u_long bytes_per_send = 0, + u_long flags = 0, + const void *act = 0); // This starts off an asynchronous transmit file. The <file> is a // handle to an open file. <header_and_trailer> is a pointer to a // data structure that contains pointers to data to send before and @@ -646,23 +646,23 @@ public: // These two should really be protected. But sometimes it // simplifies code to be able to "fake" a result. Use carefully. Result (ACE_Handler &handler, - ACE_HANDLE socket, - ACE_HANDLE file, - Header_And_Trailer *header_and_trailer, - u_long bytes_to_write, - u_long offset, - u_long offset_high, - u_long bytes_per_send, - u_long flags, - const void *act, - ACE_HANDLE event); + ACE_HANDLE socket, + ACE_HANDLE file, + Header_And_Trailer *header_and_trailer, + u_long bytes_to_write, + u_long offset, + u_long offset_high, + u_long bytes_per_send, + u_long flags, + const void *act, + ACE_HANDLE event); // Constructor is protected since creation is limited to // ACE_Asynch_Transmit_File factory. virtual void complete (u_long bytes_transferred, - int success, - const void *completion_key, - u_long error = 0); + int success, + const void *completion_key, + u_long error = 0); // ACE_Proactor will call this method when the write completes. protected: @@ -698,15 +698,15 @@ public: // and provided a consistent use of ACE_Message_Blocks. public: Header_And_Trailer (ACE_Message_Block *header = 0, - u_long header_bytes = 0, - ACE_Message_Block *trailer = 0, - u_long trailer_bytes = 0); + u_long header_bytes = 0, + ACE_Message_Block *trailer = 0, + u_long trailer_bytes = 0); // Constructor void header_and_trailer (ACE_Message_Block *header = 0, - u_long header_bytes = 0, - ACE_Message_Block *trailer = 0, - u_long trailer_bytes = 0); + u_long header_bytes = 0, + ACE_Message_Block *trailer = 0, + u_long trailer_bytes = 0); // This method allows all the member to be set in one fell swoop. ACE_Message_Block *header (void) const; @@ -788,7 +788,7 @@ public: // completes. virtual void handle_time_out (const ACE_Time_Value &tv, - const void *act = 0); + const void *act = 0); // Called when timer expires. <tv> was the requested time value and // <act> is the ACT passed when scheduling the timer @@ -844,7 +844,7 @@ public: // friend has been figured out. virtual void addresses (const ACE_INET_Addr &remote_address, - const ACE_INET_Addr &local_address); + const ACE_INET_Addr &local_address); // Called by ACE_Asynch_Acceptor to pass the addresses of the new // connections. }; |