diff options
author | Steve Huston <shuston@riverace.com> | 2002-08-27 17:38:26 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-08-27 17:38:26 +0000 |
commit | d7ffff255cb6b4831a4a9ec762f16c597c5a9c22 (patch) | |
tree | 975bd4989100178940b9f15c0ad737d40b783b54 /ace/POSIX_Asynch_IO.h | |
parent | fc10126421f88fc8d2a811fd660c8fa5a8bb3d3f (diff) | |
download | ATCD-d7ffff255cb6b4831a4a9ec762f16c597c5a9c22.tar.gz |
ChangeLogTag:Tue Aug 27 13:28:17 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/POSIX_Asynch_IO.h')
-rw-r--r-- | ace/POSIX_Asynch_IO.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/ace/POSIX_Asynch_IO.h b/ace/POSIX_Asynch_IO.h index acf8b2e8e5a..893d9f54459 100644 --- a/ace/POSIX_Asynch_IO.h +++ b/ace/POSIX_Asynch_IO.h @@ -52,7 +52,7 @@ class ACE_Export ACE_POSIX_Asynch_Result : public virtual ACE_Asynch_Result_Impl { public: /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -105,7 +105,7 @@ public: void set_error (u_long errcode); /// Simulate value to use in the post_completion () - void set_bytes_transferred (u_long nbytes); + void set_bytes_transferred (size_t nbytes); protected: /// Constructor. <Event> is not used on POSIX. @@ -129,7 +129,7 @@ protected: const void *act_; /// Bytes transferred by this operation. - u_long bytes_transferred_; + size_t bytes_transferred_; /// Success indicator. int success_; @@ -235,7 +235,7 @@ class ACE_Export ACE_POSIX_Asynch_Read_Stream_Result : public virtual ACE_Asynch public: /// The number of bytes which were requested at the start of the /// asynchronous read. - u_long bytes_to_read (void) const; + size_t bytes_to_read (void) const; /// Message block which contains the read data. ACE_Message_Block &message_block (void) const; @@ -247,7 +247,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -298,7 +298,7 @@ protected: ACE_POSIX_Asynch_Read_Stream_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, const void* act, ACE_HANDLE event, int priority, @@ -308,7 +308,7 @@ protected: /// Get the data copied to this class, before calling application /// handler. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -343,7 +343,7 @@ public: /// This starts off an asynchronous read. Upto <bytes_to_read> will /// be read and stored in the <message_block>. int read (ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, const void *act, int priority, int signal_number = 0); @@ -399,7 +399,7 @@ class ACE_Export ACE_POSIX_Asynch_Write_Stream_Result : public virtual ACE_Async public: /// The number of bytes which were requested at the start of the /// asynchronous write. - u_long bytes_to_write (void) const; + size_t bytes_to_write (void) const; /// Message block that contains the data to be written. ACE_Message_Block &message_block (void) const; @@ -411,7 +411,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -464,14 +464,14 @@ protected: ACE_POSIX_Asynch_Write_Stream_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, - u_long bytes_to_write, + size_t bytes_to_write, const void* act, ACE_HANDLE event, int priority, int signal_number); /// ACE_Proactor will call this method when the write completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -507,7 +507,7 @@ public: /// This starts off an asynchronous write. Upto <bytes_to_write> /// will be written from the <message_block>. int write (ACE_Message_Block &message_block, - u_long bytes_to_write, + size_t bytes_to_write, const void *act, int priority, int signal_number = 0); @@ -560,7 +560,7 @@ public: // warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -611,7 +611,7 @@ public: /// The number of bytes which were requested at the start of the /// asynchronous read. - u_long bytes_to_read (void) const; + size_t bytes_to_read (void) const; /// Message block which contains the read data. ACE_Message_Block &message_block (void) const; @@ -628,7 +628,7 @@ protected: ACE_POSIX_Asynch_Read_File_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, const void* act, u_long offset, u_long offset_high, @@ -637,7 +637,7 @@ protected: int signal_number); /// ACE_Proactor will call this method when the read completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -676,7 +676,7 @@ public: * at <offset> from the beginning of the file. */ int read (ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, u_long offset, u_long offset_high, const void *act, @@ -716,7 +716,7 @@ private: * method to <ACE_POSIX_Asynch_Read_Stream::read>. */ int read (ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, const void *act, int priority, int signal_number = 0); @@ -754,7 +754,7 @@ public: // warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -805,7 +805,7 @@ public: /// The number of bytes which were requested at the start of the /// asynchronous write. - u_long bytes_to_write (void) const; + size_t bytes_to_write (void) const; /// Message block that contains the data to be written. ACE_Message_Block &message_block (void) const; @@ -822,7 +822,7 @@ protected: ACE_POSIX_Asynch_Write_File_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block &message_block, - u_long bytes_to_write, + size_t bytes_to_write, const void* act, u_long offset, u_long offset_high, @@ -831,7 +831,7 @@ protected: int signal_number); /// ACE_Proactor will call this method when the write completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -862,7 +862,7 @@ public: * start at <offset> from the beginning of the file. */ int write (ACE_Message_Block &message_block, - u_long bytes_to_write, + size_t bytes_to_write, u_long offset, u_long offset_high, const void *act, @@ -902,7 +902,7 @@ private: * one. */ int write (ACE_Message_Block &message_block, - u_long bytes_to_write, + size_t bytes_to_write, const void *act, int priority, int signal_number = 0); @@ -931,7 +931,7 @@ class ACE_Export ACE_POSIX_Asynch_Accept_Result : public virtual ACE_Asynch_Acce public: /// The number of bytes which were requested at the start of the /// asynchronous accept. - u_long bytes_to_read (void) const; + size_t bytes_to_read (void) const; /// Message block which contains the read data. ACE_Message_Block &message_block (void) const; @@ -946,7 +946,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -1000,14 +1000,14 @@ protected: ACE_HANDLE listen_handle, ACE_HANDLE accept_handle, ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, const void* act, ACE_HANDLE event, int priority, int signal_number); /// ACE_Proactor will call this method when the accept completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -1071,7 +1071,7 @@ public: * the new connection is placed at the end of this buffer. */ int accept (ACE_Message_Block &message_block, - u_long bytes_to_read, + size_t bytes_to_read, ACE_HANDLE accept_handle, const void *act, int priority, @@ -1169,7 +1169,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -1226,7 +1226,7 @@ protected: int signal_number); /// ACE_Proactor will call this method when the accept completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -1400,11 +1400,11 @@ public: /// The number of bytes which were requested at the start of the /// asynchronous transmit file. - u_long bytes_to_write (void) const; + size_t bytes_to_write (void) const; /// Number of bytes per send requested at the start of the transmit /// file. - u_long bytes_per_send (void) const; + size_t bytes_per_send (void) const; /// Flags which were passed into transmit file. u_long flags (void) const; @@ -1413,7 +1413,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -1465,10 +1465,10 @@ protected: ACE_HANDLE socket, ACE_HANDLE file, ACE_Asynch_Transmit_File::Header_And_Trailer *header_and_trailer, - u_long bytes_to_write, + size_t bytes_to_write, u_long offset, u_long offset_high, - u_long bytes_per_send, + size_t bytes_per_send, u_long flags, const void *act, ACE_HANDLE event, @@ -1478,7 +1478,7 @@ protected: // ACE_Asynch_Transmit_File factory. /// ACE_Proactor will call this method when the write completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -1501,7 +1501,7 @@ protected: /// Number of bytes per send requested at the start of the transmit /// file. - u_long bytes_per_send_; + size_t bytes_per_send_; /// Flags which were passed into transmit file. u_long flags_; @@ -1533,10 +1533,10 @@ public: */ int transmit_file (ACE_HANDLE file, ACE_Asynch_Transmit_File::Header_And_Trailer *header_and_trailer, - u_long bytes_to_write, + size_t bytes_to_write, u_long offset, u_long offset_high, - u_long bytes_per_send, + size_t bytes_per_send, u_long flags, const void *act, int priority, @@ -1662,7 +1662,7 @@ class ACE_Export ACE_POSIX_Asynch_Write_Dgram_Result : public virtual ACE_Asynch public: /// The number of bytes which were requested at the start of the /// asynchronous write. - u_long bytes_to_write (void) const; + size_t bytes_to_write (void) const; /// Message block which contains the sent data ACE_Message_Block *message_block (void) const; @@ -1677,7 +1677,7 @@ public: // warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -1728,7 +1728,7 @@ protected: int signal_number); /// ACE_Proactor will call this method when the write completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -1738,7 +1738,7 @@ protected: /// The number of bytes which were requested at the start of the /// asynchronous write. - u_long bytes_to_write_; + size_t bytes_to_write_; /// Message block used for the send. ACE_Message_Block *message_block_; @@ -1851,7 +1851,7 @@ class ACE_Export ACE_POSIX_Asynch_Read_Dgram_Result : public virtual ACE_Asynch_ public: /// The number of bytes which were requested at the start of the /// asynchronous read. - u_long bytes_to_read (void) const; + size_t bytes_to_read (void) const; /// Message block which contains the read data ACE_Message_Block *message_block (void) const; @@ -1871,7 +1871,7 @@ public: // dominance warnings. These methods call the base class methods. /// Number of bytes transferred by the operation. - u_long bytes_transferred (void) const; + size_t bytes_transferred (void) const; /// ACT associated with the operation. const void *act (void) const; @@ -1914,7 +1914,7 @@ protected: ACE_POSIX_Asynch_Read_Dgram_Result (ACE_Handler &handler, ACE_HANDLE handle, ACE_Message_Block *message_block, - u_long bytes_to_read, + size_t bytes_to_read, int flags, int protocol_family, const void* act, @@ -1923,7 +1923,7 @@ protected: int signal_number = 0); /// Proactor will call this method when the read completes. - virtual void complete (u_long bytes_transferred, + virtual void complete (size_t bytes_transferred, int success, const void *completion_key, u_long error); @@ -1932,7 +1932,7 @@ protected: virtual ~ACE_POSIX_Asynch_Read_Dgram_Result (void); /// Bytes requested when the asynchronous read was initiated. - u_long bytes_to_read_; + size_t bytes_to_read_; /// Message block for reading the data into. ACE_Message_Block *message_block_; |