summaryrefslogtreecommitdiff
path: root/ace/Asynch_Acceptor.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-29 19:12:04 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-29 19:12:04 +0000
commit411ced7dd54e196a407e03860400fd73dac7c9d8 (patch)
tree3e4a95597aa92f6f42677ec393af67f35beabf99 /ace/Asynch_Acceptor.h
parentca88ce8d257b98ec5f27e717a34469fb9ef88329 (diff)
downloadATCD-411ced7dd54e196a407e03860400fd73dac7c9d8.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Asynch_Acceptor.h')
-rw-r--r--ace/Asynch_Acceptor.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/ace/Asynch_Acceptor.h b/ace/Asynch_Acceptor.h
index bf478178371..d91c3b4e7e8 100644
--- a/ace/Asynch_Acceptor.h
+++ b/ace/Asynch_Acceptor.h
@@ -1,5 +1,4 @@
-/* -*- C++ -*- */
-// $Id: Asynch_Acceptor.h,v
+// $Id$
// ============================================================================
//
@@ -53,7 +52,8 @@ public:
int reuse_addr = 1,
ACE_Proactor *proactor = 0,
int validate_new_connection = 0,
- int reissue_accept = 1);
+ int reissue_accept = 1,
+ int number_of_initial_accepts = -1);
// This starts the listening process at the port specified by
// <address>. ACE_Asynch_Acceptor initiates the AcceptEx calls with
// <bytes_to_read>. The buffer for the initial data will be created
@@ -65,6 +65,20 @@ public:
// <ACE_Service_Handler::addresses> before calling
// <ACE_Service_Handler::open>. The <backlog> parameter specifies
// the listen backlog and the outstanding AcceptEx calls.
+ // <number_of_initial_accepts> is the number of asynchronous accepts
+ // that are started at the end of <open>. If
+ // <number_of_initial_accepts> is -1, then
+ // <number_of_initial_accepts> is set to <backlog> and hence
+ // <backlog> number of asynchronous accepts are started.
+
+ virtual ACE_HANDLE get_handle (void) const;
+ // Get the underlying handle.
+
+ virtual void set_handle (ACE_HANDLE handle);
+ // Set the underlying listen handle. It is the user's responsibility
+ // to make sure that the old listen handle has been appropriately
+ // 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);
// This initiates a new asynchronous accept through the <AcceptEx>