摘要:
1 for(;;){ 2 socklen_t len = sizeof(client_address); 3 connfd = accept(listenfd, (struct sockaddr *)&client_address, &len); 4 if(connfd < 0){ 5 printf("accept error: %s\n", strerror(errno)); 6 } 7 printf("server get connection from %s\n", inet_nto...
阅读全文