diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2006-09-19 19:52:17 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2006-09-19 19:52:17 +0000 |
commit | e5ad417e1db1f51f6691a8fb131a2d1cbcd8ce80 (patch) | |
tree | a6b744581f93597a9e79aa6948fefdee5282137b /TAO/tao/IIOP_Acceptor.h | |
parent | 75a5c4d5fe634ccaeeb2a49823ae1fc1c3b0a5b7 (diff) | |
download | ATCD-e5ad417e1db1f51f6691a8fb131a2d1cbcd8ce80.tar.gz |
Tue Sep 19 19:31:15 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tao/IIOP_Acceptor.h')
-rw-r--r-- | TAO/tao/IIOP_Acceptor.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/TAO/tao/IIOP_Acceptor.h b/TAO/tao/IIOP_Acceptor.h index 494edae196a..ea40333fa27 100644 --- a/TAO/tao/IIOP_Acceptor.h +++ b/TAO/tao/IIOP_Acceptor.h @@ -133,13 +133,18 @@ protected: /** * Helper method - * Clear out 'addr' & 'specified_hostname' and initialize them - * based upon 'address'. + * Clear out 'addr' & 'specified_hostname' and initialize them based + * upon 'address'. If a non-zero pointer is passed in for def_type, + * this will be set to AF_INET6 if IPv6 support is enabled and + * supplied hostname is either [] or [::]. It will be set to AF_INET + * if the hostname is 0.0.0.0, otherwise it is set to + * AF_UNSPEC. This value is then passed to probe_interfaces by open. */ int parse_address (const char *address, ACE_INET_Addr &addr, - ACE_CString &specified_hostname); + ACE_CString &specified_hostname, + int *def_type = 0); /** * Set the host name for the given address using the dotted decimal @@ -162,8 +167,13 @@ protected: * interface. The port for each initialized ACE_INET_Addr will be * set in the open_i() method. This method only gets invoked when * no explicit hostname is provided in the specified endpoint. + * + * The optional argument def_type is used to constrain the resulting + * list of interfaces to be either only IPv6 or IPv4, or both, when + * ACE_HAS_IPV6 is enabled and the source endpoint was an explicitly + * declared wildcard. */ - int probe_interfaces (TAO_ORB_Core *orb_core); + int probe_interfaces (TAO_ORB_Core *orb_core, int def_type = AF_UNSPEC); /** * Parse protocol specific options. |