add comments

This commit is contained in:
shuxin   zheng 2019-12-12 10:57:29 +08:00
parent a83fe47217
commit 49ef1a29a8
2 changed files with 13 additions and 6 deletions

View File

@ -63,8 +63,9 @@ public:
/**
*
* @param addr {const char*}
* ip:port unix
* /path/xxx
* ip:port unix /path/xxx
* Linux @xxx @
* Linux abstract unix socket
* @return {bool}
*/
bool open(const char* addr);

View File

@ -41,9 +41,14 @@ public:
/**
*
* @param addr {const char*} , (UNIX平台),
* /tmp/test.sock; TCP服务器:
* [${local_ip}@]${remote_addr}, : 60.28.250.199@www.sina.com:80,
* @param addr {const char*} , (UNIX平台),
* /tmp/test.sockLinux
* abastract unix socketunix域套接地址区别
* acl @ Linux
* abstract unix domain socket Linux ,
* @/tmp/test.sock;
* TCP服务器: [${local_ip}@]${remote_addr},
* : 60.28.250.199@www.sina.com:80,
* : 60.28.250.199, www.sina.com 80,
* OS自动绑定本地 IP www.sina.com:80
* @param conn_timeout {int} ()
@ -54,7 +59,8 @@ public:
/**
* UDP UDP
* @param addr {const char*} ip:port
* @param addr {const char*} ip:port
* UNIX Linux Linux abstract unix socket
* @param rw_timeout {int} ()
* @param flag {unsigned}
* @return {bool}