摘要:
1.tcp连接,服务器端的accept返回的套接字怎么和客户端对应的套接字通信?tcp server端进行的动作有//创建STREAM socketint server_sockfd;server_sockfd = socket(AF_INET, SOCK_STREAM, 0);//想要监视的地址及端口struct sockaddr_in server_address;server_address.sin_family = AF_INET;server_address.sin_addr.s_addr = inet_addr("127.0.0.1");server_addre 阅读全文