summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-01 20:04:20 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-01 20:04:20 +0000
commit82f3eb74218a2abdc74cca1ecf2d0ffbe77d8c49 (patch)
treec0c445adba97f8a9b2dbdc1eb55c8974b9541911
parentc1d804ec863aee7b3f1119fb24f91078d559438e (diff)
downloadATCD-82f3eb74218a2abdc74cca1ecf2d0ffbe77d8c49.tar.gz
ChangeLogTag:Tue Jun 1 15:02:34 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
-rw-r--r--ChangeLog-99b5
-rw-r--r--ace/Connector.h24
2 files changed, 20 insertions, 9 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b
index 8abbbfc3160..6ece29d3af7 100644
--- a/ChangeLog-99b
+++ b/ChangeLog-99b
@@ -1,3 +1,8 @@
+Tue Jun 1 15:02:34 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
+
+ * ace/Connector.h:
+ Documented the new connect() method
+
Tue Jun 01 11:18:03 1999 <alex@cs.wustl.edu>
* examples/Reactor/Proactor/test_end_event_loop.cpp:
diff --git a/ace/Connector.h b/ace/Connector.h
index eac69ebc942..4f1f93a00b8 100644
--- a/ace/Connector.h
+++ b/ace/Connector.h
@@ -142,9 +142,16 @@ public:
int reuse_addr = 0,
int flags = O_RDWR,
int perms = 0);
+ // Initiate connection of <svc_handler> to peer at <remote_addr>
+ // using <synch_options>. If the caller wants to designate the
+ // selected <local_addr> they can (and can also insist that the
+ // <local_addr> be reused by passing a value <reuse_addr> ==
+ // 1). <flags> and <perms> can be used to pass any flags that are
+ // needed to perform specific operations such as opening a file
+ // within connect with certain permissions.
- virtual int connect (SVC_HANDLER *&svc_handler,
- SVC_HANDLER *&sh_copy,
+ virtual int connect (SVC_HANDLER *&svc_handler_hint,
+ SVC_HANDLER *&svc_handler,
const ACE_PEER_CONNECTOR_ADDR &remote_addr,
const ACE_Synch_Options &synch_options = ACE_Synch_Options::defaults,
const ACE_PEER_CONNECTOR_ADDR &local_addr
@@ -152,13 +159,12 @@ public:
int reuse_addr = 0,
int flags = O_RDWR,
int perms = 0);
- // Initiate connection of <svc_handler> to peer at <remote_addr>
- // using <synch_options>. If the caller wants to designate the
- // selected <local_addr> they can (and can also insist that the
- // <local_addr> be reused by passing a value <reuse_addr> ==
- // 1). <flags> and <perms> can be used to pass any flags that are
- // needed to perform specific operations such as opening a file
- // within connect with certain permissions.
+ // A variation on the previous connect(), on cached connectors the
+ // <svc_handler_hint> variable can be used as a hint for future
+ // lookups. Since this variable is modified in the context of the
+ // internal cache its use is thread-safe. But the actual
+ // svc_handler for the current connection is returned in the second
+ // parameter <svc_handler>.
virtual int connect_n (size_t n,
SVC_HANDLER *svc_handlers[],