网络编程常用总结
TPC UDP SOCKET IO复用 编程知识1.socket int port = atoi(argv[1]); int sockfd = socket(AF_INET,SOCK_STREAM,0); if(sockfd<0) return -1; struct sockaddr_in addr; memset(&addr, 0, sizeof(struct sockaddr_in)); addr.sin_family = AF_INE
原创
2021-12-30 17:08:41 ·
183 阅读 ·
0 评论