摘要: #include <sys/socket.h>int socket(int family, int type, int protocol)功能: 创建用于通信的套接字,并指定期望的通信协议类型。返回: 成功 -> 非负描述字,出错 -> -1family: 通信协议类型,AF_INET(IPv4协议),AF_INET6(IPv6协议),AF_LOCAL(Unix域协议), ... 阅读全文
posted @ 2009-08-10 20:01 李岩 - doing 阅读(454) 评论(0) 推荐(0) 编辑