//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2000-2001 Softelf Inc. All rights reserved. //////////////////////////////////////////////////////////////////////////////// // // Author : Telan // Da
domain描述如下: The domain argument specifies a communication domain; this selects the protocol family which will be used for communication. These families are defined in . The currently understood formats include: Name Purpose Man page AF_UNIX, AF_LOCA
利用socket进行通信 以下是server端的部分代码 #include #include #include #include #include #include #include using namespace std; int main(){ printf("%s\n","start server ......"); int server_sockfd,client_sockfd; int server_len,client_len; struct sockaddr_in