Changeset 186 for vtcross/trunk/src/lib/socketcomm/socketcomm.cpp
- Timestamp:
- 03/22/09 23:35:05 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/lib/socketcomm/socketcomm.cpp
r184 r186 78 78 79 79 /* TODO see notes in socketcomm.h. This function, and the RemoteComponent 80 * struct, need a code review. 80 * struct, need a code review to make sure it is ready to be used rather 81 * than ClientSocket() 81 82 */ 82 83 void … … 90 91 ERROR(1, "No server found by that hostname."); 91 92 92 memcpy(serverInfo, server, sizeof(struct hostent));93 94 93 serverInfo->socketFD = socket(AF_INET, SOCK_STREAM, 0); 95 94 if(serverInfo->socketFD < 0) … … 232 231 int32_t clientSocket = accept(serverSock, NULL, NULL); 233 232 if(clientSocket < 0) 234 ERROR(1, "Could establish connection with client socket.\n");233 ERROR(1, "Could not establish connection with client socket.\n"); 235 234 236 235 LOG("Handling client %s\n", inet_ntoa(echoClientAddr.sin_addr));