#include <sys/types.h> #include <sys/socket.h> int listen(int sockfd, int backlog); 描述: listen() marks the socket referred to by sockfd as a passive s Read More
#include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int protocol); 返回值: On success, a file descriptor for the new socket i Read More
#include <sys/types.h> #include <sys/socket.h> int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); 返回值: On success, zero is returned Read More