Changeset 229 for vtcross/trunk/src/lib/socketcomm/socketcomm.cpp
- Timestamp:
- 04/02/09 18:33:22 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/lib/socketcomm/socketcomm.cpp
r227 r229 44 44 ERROR(1, "Error reading from socket.\n"); 45 45 if(msgLength == 0) 46 ERROR(1, "Remote component closed connection. \n");46 ERROR(1, "Remote component closed connection. 1\n"); 47 47 48 48 size_t i; … … 57 57 ERROR(1, "Error reading from socket.\n"); 58 58 if(msgLength == 0) 59 ERROR(1, "Remote component closed connection. \n");59 ERROR(1, "Remote component closed connection. 2\n"); 60 60 } 61 61 … … 124 124 ssize_t numSentBytes = send(socketFD, message, (strlen(message) + 1), 0); 125 125 if(numSentBytes < 0) { 126 ERROR(1, "Error sending to server .\n");126 ERROR(1, "Error sending to server %i (%i): %s\n",socketFD, numSentBytes, message); 127 127 } 128 128 else if(numSentBytes == 0) {