Error Functions


These functions are used to work with the global SmartSockets error code.

TutErrNumGet — determine the value of a global SmartSockets error number

T_INT4 TutErrNumGet() 

TutErrNumGetC — determine the value of a C error number

T_INT4 TutErrNumGetC() 

TutErrNumGetOs — determine the value of an operating system error number

T_INT4 TutErrNumGetOs() 

TutErrNumGetSocket — determine the value of a socket error number

T_INT4 TutErrNumGetSocket() 

TutErrNumSet — set the value of a global SmartSockets error number

void TutErrNumSet(err_num) 
T_INT4 err_num; 

TutErrNumToStr — convert a SmartSockets error number into a error string

T_STR TutErrNumToStr(err_num) 
T_INT4 err_num; 

TutErrStrCreate — add a new string to the error string table

T_BOOL TutErrStrCreate(err_num, err_str) 
T_INT4 err_num; 
T_STR err_str; 

TutErrStrGet — retrieve the global SmartSockets error number as a descriptive string

T_STR TutErrStrGet() 

TutPerror — report UNIX error messages to the process output window

void TutPerror(msg) 
T_STR msg; 

TutWarning — unconditional printf-style warning output to a SmartSockets process output window

void TutWarning(format_str, ...) 
T_STR format_str; 

TIBCO SmartSockets™ API Quick Reference
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com