summaryrefslogtreecommitdiff
path: root/ACE/ace/INET_Addr.h
diff options
context:
space:
mode:
authorLike Ma <likemartinma@gmail.com>2019-02-25 14:13:29 +0800
committerLike Ma <likemartinma@gmail.com>2019-02-25 14:13:29 +0800
commit7e77f63fa1b0936a78e9994462e1a5ad72674744 (patch)
tree0e33a8a90141c98fc4673727e57b727e108bb33c /ACE/ace/INET_Addr.h
parent6f5b507199498f8c17d63317ba94b36fbb38714f (diff)
downloadATCD-7e77f63fa1b0936a78e9994462e1a5ad72674744.tar.gz
Refine ACE_INET_Addr doc.
Diffstat (limited to 'ACE/ace/INET_Addr.h')
-rw-r--r--ACE/ace/INET_Addr.h38
1 files changed, 24 insertions, 14 deletions
diff --git a/ACE/ace/INET_Addr.h b/ACE/ace/INET_Addr.h
index 059cf7d129a..856874df4d3 100644
--- a/ACE/ace/INET_Addr.h
+++ b/ACE/ace/INET_Addr.h
@@ -57,10 +57,14 @@ public:
/**
* Initializes an ACE_INET_Addr from the @a address, which can be
- * "ip-number:port-number" (e.g., "tango.cs.wustl.edu:1234" or
- * "128.252.166.57:1234"). If there is no ':' in the @a address it
- * is assumed to be a port number, with the IP address being
- * INADDR_ANY.
+ * "ip-addr:port-number" (e.g., "tango.cs.wustl.edu:1234"),
+ * "ip-addr:port-name" (e.g., "tango.cs.wustl.edu:telnet"),
+ * "ip-number:port-number" (e.g., "128.252.166.57:1234"),
+ * "ip-number:port-name" (e.g., "128.252.166.57:telnet"),
+ * "[ipv6-number]:port-number (e.g, "[2001:db8::57]:1234") or
+ * "[ipv6-number]:port-name (e.g, "[2001:db8::57]:telnet").
+ * If there is no ':' in the @a address it is assumed to be a port number,
+ * with the IP address being INADDR_ANY.
*/
explicit ACE_INET_Addr (const char address[],
int address_family = AF_UNSPEC);
@@ -174,11 +178,15 @@ public:
const char protocol[] = "tcp");
/**
- * Initializes an ACE_INET_Addr from the @a addr, which can be
- * "ip-number:port-number" (e.g., "tango.cs.wustl.edu:1234" or
- * "128.252.166.57:1234"). If there is no ':' in the @a address it
- * is assumed to be a port number, with the IP address being
- * INADDR_ANY.
+ * Initializes an ACE_INET_Addr from the @a address, which can be
+ * "ip-addr:port-number" (e.g., "tango.cs.wustl.edu:1234"),
+ * "ip-addr:port-name" (e.g., "tango.cs.wustl.edu:telnet"),
+ * "ip-number:port-number" (e.g., "128.252.166.57:1234"),
+ * "ip-number:port-name" (e.g., "128.252.166.57:telnet"),
+ * "[ipv6-number]:port-number (e.g, "[2001:db8::57]:1234") or
+ * "[ipv6-number]:port-name (e.g, "[2001:db8::57]:telnet").
+ * If there is no ':' in the @a address it is assumed to be a port number,
+ * with the IP address being INADDR_ANY.
*/
int set (const char addr[], int address_family = AF_UNSPEC);
@@ -216,8 +224,8 @@ public:
/**
* Transform the current ACE_INET_Addr address into string format.
* If @a ipaddr_format is true this produces "ip-number:port-number"
- * (e.g., "128.252.166.57:1234"), whereas if @a ipaddr_format is false
- * this produces "ip-name:port-number" (e.g.,
+ * (e.g., "128.252.166.57:1234" or "[2001:db8::57]:1234"), whereas
+ * if @a ipaddr_format is false this produces "ip-name:port-number" (e.g.,
* "tango.cs.wustl.edu:1234"). Returns -1 if the @a size of the
* @a buffer is too small, else 0.
*/
@@ -229,9 +237,11 @@ public:
* Initializes an ACE_INET_Addr from the @a address, which can be
* "ip-addr:port-number" (e.g., "tango.cs.wustl.edu:1234"),
* "ip-addr:port-name" (e.g., "tango.cs.wustl.edu:telnet"),
- * "ip-number:port-number" (e.g., "128.252.166.57:1234"), or
- * "ip-number:port-name" (e.g., "128.252.166.57:telnet"). If there
- * is no ':' in the @a address it is assumed to be a port number,
+ * "ip-number:port-number" (e.g., "128.252.166.57:1234"),
+ * "ip-number:port-name" (e.g., "128.252.166.57:telnet"),
+ * "[ipv6-number]:port-number (e.g, "[2001:db8::57]:1234") or
+ * "[ipv6-number]:port-name (e.g, "[2001:db8::57]:telnet").
+ * If there is no ':' in the @a address it is assumed to be a port number,
* with the IP address being INADDR_ANY.
*/
virtual int string_to_addr (const char address[],