diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-05 07:01:06 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-05 07:01:06 +0000 |
commit | 08cb2b10d4fd0c5bdf7992fe1232afc42d22f8dd (patch) | |
tree | 8b15a8875e8cb4dccc907f7912ae23f5ba94fc4e | |
parent | 3790c7502b79fce038bae92ac79c5d0aa1027422 (diff) | |
download | ATCD-08cb2b10d4fd0c5bdf7992fe1232afc42d22f8dd.tar.gz |
*** empty log message ***
-rw-r--r-- | ace/Asynch_Acceptor.cpp | 6 | ||||
-rw-r--r-- | ace/Asynch_Acceptor.h | 2 | ||||
-rw-r--r-- | ace/Asynch_IO.cpp | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/ace/Asynch_Acceptor.cpp b/ace/Asynch_Acceptor.cpp index 190d45942a3..146ed63bf6d 100644 --- a/ace/Asynch_Acceptor.cpp +++ b/ace/Asynch_Acceptor.cpp @@ -134,7 +134,7 @@ ACE_Asynch_Acceptor<HANDLER>::get_handle (void) const } template <class HANDLER> int -ACE_Asynch_Acceptor<HANDLER>::accept (size_t bytes_to_read) +ACE_Asynch_Acceptor<HANDLER>::accept (size_t bytes_to_read, const void *act) { ACE_Message_Block *message_block = 0; size_t space_needed = bytes_to_read + 2 * this->address_size (); @@ -144,7 +144,9 @@ ACE_Asynch_Acceptor<HANDLER>::accept (size_t bytes_to_read) // Initiate asynchronous accepts if (this->asynch_accept_.accept (*message_block, - bytes_to_read) == -1) + bytes_to_read, + ACE_INVALID_HANDLE, + act) == -1) { // Cleanup on error message_block->release (); diff --git a/ace/Asynch_Acceptor.h b/ace/Asynch_Acceptor.h index 72aafaa5d9a..f65edc96cf3 100644 --- a/ace/Asynch_Acceptor.h +++ b/ace/Asynch_Acceptor.h @@ -80,7 +80,7 @@ public: // closed and the all outstanding asynchronous operations have // either completed or have been canceled on the old listen handle. - virtual int accept (size_t bytes_to_read = 0); + virtual int accept (size_t bytes_to_read = 0, const void *act); // This initiates a new asynchronous accept through the <AcceptEx> // call. diff --git a/ace/Asynch_IO.cpp b/ace/Asynch_IO.cpp index 505c5f9b1ae..5d9830bb340 100644 --- a/ace/Asynch_IO.cpp +++ b/ace/Asynch_IO.cpp @@ -781,8 +781,8 @@ class ACE_Export ACE_Asynch_Accept_Handler : public ACE_Event_Handler // = DESCRIPTION // public: - ACE_Asynch_Accept_Handler (ACE_Reactor* reactor, - ACE_Proactor* proactor); + ACE_Asynch_Accept_Handler (ACE_Reactor* reactor = 0, + ACE_Proactor* proactor = 0); // Constructor. Give the reactor so that it can activate/deactivate // the handlers. Give also the proactor used here, so that the // handler can send information through the notification pipe of the |