4socket函数的函数原型是 A: int socket(int family, int type, int protocol) B: int socket(int sockfd,struct sockaddr *my_addr, int addrlen) C: int socket(int sockfd, int backlog) D: int socket(int sockfd, struct sockaddr *serv_addr, int addrlen)
4socket函数的函数原型是 A: int socket(int family, int type, int protocol) B: int socket(int sockfd,struct sockaddr *my_addr, int addrlen) C: int socket(int sockfd, int backlog) D: int socket(int sockfd, struct sockaddr *serv_addr, int addrlen)
假设下列是面向连接服务器的一段源代码: struct sockaddr_in sin; /* an Internet endpoint address */ SOCKET s; /* socket descriptor */ memset(&sin, 0, sizeof(sin)); sin.sin_family = X ;则代码中的X是
假设下列是面向连接服务器的一段源代码: struct sockaddr_in sin; /* an Internet endpoint address */ SOCKET s; /* socket descriptor */ memset(&sin, 0, sizeof(sin)); sin.sin_family = X ;则代码中的X是
1