int main(int argc, char *argv[]) { struct sockaddr_in myAddr; /*the server addr*/ struct sockaddr_in clientAddr; /*client addr*/ int iLen; struct timeval tv; int sockfd; int acceptfd; int z; int loop=1; int reuse_addr=1; int wkfd; /*the working fd;*/ fd_set read_sock; fd_set wk_sock; /*the current working socket set*/ int maxfds; /*the select max number of file describe*/ char buffer[256];