.建立套接字:socket() dom
- /* Create a new socket of type TYPE in domain DOMAIN, using
- protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
- Returns a file descriptor for the new socket, or -1 for errors. */
- extern int socket (int __domain, int __type, int __protocol) __THROW;
size_t strlen(const char *) 源代碼分析socket
http://blog.csdn.net/astrotycoon/article/details/8124359.net