//server
#include<stdio.h> #include<sys/socket.h> #include<netinet/in.h> #include<string.h> #include<unistd.h> #include <arpa/inet.h> #include<pthread.h> static void usage(const char *proc) { printf("Please use :%s [IP] [port] ",proc); } void thread_run(void *arg) { printf("creat a new thread "); int fd = (int)arg; char buf[1024]; while(1){ memset(buf,'