Changeset 35 in cheroxy for trunk/src/CRXSocket.cpp
- Timestamp:
- 11/20/12 19:06:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CRXSocket.cpp
r24 r35 112 112 { 113 113 aResult = ERROR_TCPSOCKET_FAILED_TO_SETSOCKOPT; 114 CRX_ERROR (aResult, "Failed to set socket option.");114 CRX_ERROR_SET (aResult, "Failed to set socket option."); 115 115 } 116 116 /*----------------------------------------------------------------*/ … … 188 188 { 189 189 aResult = ERROR_TCPSOCKET_ALREADY_IN_USE; 190 CRX_ERROR (aResult, "Already in use.");190 CRX_ERROR_SET (aResult, "Already in use."); 191 191 return aResult; 192 192 } … … 196 196 { 197 197 aResult = ERROR_TCPSOCKET_FAILED_TO_CREATE_SOCKET; 198 CRX_ERROR (aResult, "Failed to create socket(%d).", GetSystemErrorCode ());198 CRX_ERROR_SET (aResult, "Failed to create socket(%d).", GetSystemErrorCode ()); 199 199 return aResult; 200 200 } … … 219 219 { 220 220 aResult = ERROR_TCPSOCKET_FAILED_TO_CREATE_SOCKET; 221 CRX_ERROR (aResult, "Failed to create socket(%d).", GetSystemErrorCode ());221 CRX_ERROR_SET (aResult, "Failed to create socket(%d).", GetSystemErrorCode ()); 222 222 return aResult; 223 223 } … … 233 233 { 234 234 aResult = ERROR_TCPSOCKET_FAILED_TO_GET_HOSTNAME; 235 CRX_ERROR (aResult, "Failed to get hostname.");235 CRX_ERROR_SET (aResult, "Failed to get hostname."); 236 236 return aResult; 237 237 } … … 244 244 { 245 245 aResult = ERROR_TCPSOCKET_FAILED_TO_SETSOCKOPT; 246 CRX_ERROR (aResult, "Failed to set timeout (%d).", GetSystemErrorCode ());246 CRX_ERROR_SET (aResult, "Failed to set timeout (%d).", GetSystemErrorCode ()); 247 247 return aResult; 248 248 } … … 252 252 { 253 253 aResult = ERROR_TCPSOCKET_FAILED_TO_CONNECT; 254 CRX_ERROR (aResult, "Failed to connect (%d).", GetSystemErrorCode ());254 CRX_ERROR_SET (aResult, "Failed to connect (%d).", GetSystemErrorCode ()); 255 255 } 256 256 … … 271 271 { 272 272 aResult = ERROR_TCPSOCKET_FAILED_TO_CREATE_SOCKET; 273 CRX_ERROR (aResult, "Failed to create socket(%d).", GetSystemErrorCode ());273 CRX_ERROR_SET (aResult, "Failed to create socket(%d).", GetSystemErrorCode ()); 274 274 return aResult; 275 275 } … … 283 283 { 284 284 aResult = ERROR_TCPSOCKET_FAILED_TO_BIND; 285 CRX_ERROR (aResult, "Failed to bind(%d).", GetSystemErrorCode ());285 CRX_ERROR_SET (aResult, "Failed to bind(%d).", GetSystemErrorCode ()); 286 286 return aResult; 287 287 } … … 291 291 { 292 292 aResult = ERROR_TCPSOCKET_FAILED_TO_LISTEN; 293 CRX_ERROR (aResult, "Failed to listen(%d).", GetSystemErrorCode ());293 CRX_ERROR_SET (aResult, "Failed to listen(%d).", GetSystemErrorCode ()); 294 294 return aResult; 295 295 } … … 322 322 { 323 323 aResult = ERROR_TCPSOCKET_FAILED_TO_ACCEPT; 324 CRX_ERROR (aResult, "Failed to accept(%d).", GetSystemErrorCode ());324 CRX_ERROR_SET (aResult, "Failed to accept(%d).", GetSystemErrorCode ()); 325 325 return aResult; 326 326 } … … 353 353 { 354 354 aResult = ERROR_TCPSOCKET_FAILED_TO_SEND; 355 CRX_ERROR (aResult, "Failed to send(%d).", GetSystemErrorCode ());355 CRX_ERROR_SET (aResult, "Failed to send(%d).", GetSystemErrorCode ()); 356 356 return aResult; 357 357 } … … 375 375 { 376 376 aResult = ERROR_TCPSOCKET_FAILED_TO_RECEIVE; 377 CRX_ERROR (aResult, "Failed to receive(%d).", GetSystemErrorCode ());378 return aResult; 379 } 380 381 /*----------------------------------------------------------------*/ 382 return aResult; 383 } 377 CRX_ERROR_SET (aResult, "Failed to receive(%d).", GetSystemErrorCode ()); 378 return aResult; 379 } 380 381 /*----------------------------------------------------------------*/ 382 return aResult; 383 }
Note:
See TracChangeset
for help on using the changeset viewer.