摘要: udp_server #include<stdio.h>#include<sys/socket.h>#include<string.h>#include<netinet/in.h>#define portnum 3333 void main(){ int n,addrlen; char buffer 阅读全文
posted @ 2017-08-17 22:03 聊哥 阅读(129) 评论(0) 推荐(0) 编辑
摘要: tcp_server.c #include<stdio.h>#include<sys/socket.h>#include<string.h>#include<netinet/in.h>#define portnum 3333 int main(){ struct sockaddr_in server 阅读全文
posted @ 2017-08-17 20:41 聊哥 阅读(136) 评论(0) 推荐(0) 编辑