duduru

2024年8月22日

socket网络编程

摘要: 套接字函数 创建套接字 // 创建一个套接字 int socket(int domain, int type, int protocol); 参数: domain: 使用的地址族协议 AF_INET: 使用IPv4格式的ip地址 AF_INET6: 使用IPv6格式的ip地址type: SOCK_S 阅读全文

posted @ 2024-08-22 15:16 duduru 阅读(0) 评论(0) 推荐(0)

导航