summaryrefslogtreecommitdiff
path: root/ace/Acceptor.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-09 09:15:15 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-09 09:15:15 +0000
commitaf128a3939de2eb9357fb7af01d4368780d9d542 (patch)
treece73734961c8345b486f105fd93ae4e84f43256a /ace/Acceptor.h
parentf0c080fdc364d753e4858872160be9e46c9c72ee (diff)
downloadATCD-af128a3939de2eb9357fb7af01d4368780d9d542.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Acceptor.h')
-rw-r--r--ace/Acceptor.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/ace/Acceptor.h b/ace/Acceptor.h
index feca8eb7d2f..3be451797ad 100644
--- a/ace/Acceptor.h
+++ b/ace/Acceptor.h
@@ -84,12 +84,13 @@ protected:
// for creating, accepting, and activating SVC_HANDLER's,
// respectively.
- virtual SVC_HANDLER *make_svc_handler (void);
+ virtual int make_svc_handler (SVC_HANDLER *&sh);
// Bridge method for creating a SVC_HANDLER. The default is to
- // create a new SVC_HANDLER. However, subclasses can override this
- // policy to perform SVC_HANDLER creation in any way that they like
- // (such as creating subclass instances of SVC_HANDLER, using a
- // singleton, dynamically linking the handler, etc.).
+ // create a new <SVC_HANDLER> if <sh> == 0, else <sh> is unchanged.
+ // However, subclasses can override this policy to perform
+ // SVC_HANDLER creation in any way that they like (such as creating
+ // subclass instances of SVC_HANDLER, using a singleton, dynamically
+ // linking the handler, etc.). Returns -1 on failure, else 0.
virtual int accept_svc_handler (SVC_HANDLER *svc_handler);
// Bridge method for accepting the new connection into the
@@ -222,14 +223,15 @@ protected:
// for creating, accepting, and activating <SVC_HANDLER>'s,
// respectively.
- virtual SVC_HANDLER *make_svc_handler (void);
+ virtual int make_svc_handler (SVC_HANDLER *&);
// Bridge method for creating a <SVC_HANDLER>. The strategy for
// creating a <SVC_HANDLER> are configured into the Acceptor via
// it's <creation_strategy_>. The default is to create a new
- // <SVC_HANDLER>. However, subclasses can override this policy to
- // perform <SVC_HANDLER> creation in any way that they like (such as
- // creating subclass instances of <SVC_HANDLER>, using a singleton,
- // dynamically linking the handler, etc.).
+ // <SVC_HANDLER> if <sh> == 0, else <sh> is unchanged. However,
+ // subclasses can override this policy to perform <SVC_HANDLER>
+ // creation in any way that they like (such as creating subclass
+ // instances of <SVC_HANDLER>, using a singleton, dynamically
+ // linking the handler, etc.). Returns -1 on failure, else 0.
virtual int accept_svc_handler (SVC_HANDLER *svc_handler);
// Bridge method for accepting the new connection into the