Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return Values

Status
Not open for further replies.

webstony

Technical User
Jan 29, 2001
19
DE
Hello everybody,

once more I need your help!

My little program should be compatible to UNIX and WINDOWS environments. In Windows I can retrieve the error code if send() or receive() function of winsock fails with WSAGetLastError(). How can I retrieve the error code under UNIX environments?

Thanks a lot,
cu, Stony
 
In most unix environments, the global variable errno holds the last error code. Be careful of this in threaded code though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top