summaryrefslogtreecommitdiff
path: root/ace/SOCK_Acceptor.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-16 19:23:42 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-16 19:23:42 +0000
commitc973743efb2e1f9d39d170489f7ab0e23d65e1fe (patch)
tree93989328daec638c046d296163f5c08c426921b8 /ace/SOCK_Acceptor.h
parent360e42103c6c20335224b743502b14418421f493 (diff)
downloadATCD-c973743efb2e1f9d39d170489f7ab0e23d65e1fe.tar.gz
.
Diffstat (limited to 'ace/SOCK_Acceptor.h')
-rw-r--r--ace/SOCK_Acceptor.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/ace/SOCK_Acceptor.h b/ace/SOCK_Acceptor.h
index e7c301de34a..18cd3005431 100644
--- a/ace/SOCK_Acceptor.h
+++ b/ace/SOCK_Acceptor.h
@@ -28,9 +28,16 @@
class ACE_Export ACE_SOCK_Acceptor : public ACE_SOCK
{
// = TITLE
- // Defines a factory that creates new <ACE_Stream>s passively.
+ // Defines a factory that creates new <ACE_Stream>s passively.
+ //
+ // = DESCRIPTION
+ // The <ACE_SOCK_Acceptor> has its own "passive-mode" socket.
+ // This serves as a factory to create so-called "data-mode"
+ // sockets, which are what the <ACE_SOCK_Stream> encapsulates.
+ // Therefore, by inheriting from <ACE_SOCK>, <ACE_SOCK_Acceptor>
+ // gets its very own socket.
public:
- // = Initialization methods.
+ // = Initialization and termination methods.
ACE_SOCK_Acceptor (void);
// Default constructor.
@@ -41,9 +48,6 @@ public:
int protocol = 0);
// Initiate a passive mode socket.
- ~ACE_SOCK_Acceptor (void);
- // Default dtor.
-
int open (const ACE_Addr &local_sap,
int reuse_addr = 0,
int protocol_family = PF_INET,
@@ -51,6 +55,9 @@ public:
int protocol = 0);
// Initiate a passive mode socket.
+ ~ACE_SOCK_Acceptor (void);
+ // Default dtor.
+
// = Passive connection <accept> methods.
int accept (ACE_SOCK_Stream &new_stream,
ACE_Addr *remote_addr = 0,