TutErrNumGetSocket get the value of the socket error number
None
The value of the socket error number.
None
The socket error number is a value indicating how the last socket function failed. The error number is valid only when TutErrNumGet reports T_ERR_SOCKET.
This error number is stored in a value for each thread to accommodate multi-threaded programs.
TutErrNumGetSocket should only be called when TutErrNumGet returns T_ERR_SOCKET.
TutErrNumGet, TutErrNumGetC, TutErrNumGetOs
This example checks if a socket error occurred and prints the related socket error code:
if (TutErrNumGet() == T_ERR_SOCKET) { TutOut("Socket error %d occurred.\n", TutErrNumGetSocket()); }
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |