Operating System - HP-UX
1822439 Members
2712 Online
109642 Solutions
New Discussion юеВ

WSASocket,WSACleanup,WSAStartup,WSAGetLastError equivalent on HPUX 11.0

 
Deepak_3
Occasional Contributor

WSASocket,WSACleanup,WSAStartup,WSAGetLastError equivalent on HPUX 11.0

Hi,

Where can we find the equivalent functionality of
WSASocket,WSACleanup,WSAStartup,WSAGetLastError on HPUX 11.0.

These functionalities are available on Windows, do we need them on UNIX(hpux-11).

setmode() is also present on Windows, but
cannot find an equivalent on UNIX(hpux-11).


Can anyone suggest on this please.

Thanks and Regards
Deepak

2 REPLIES 2
Dave Kelly_1
Respected Contributor

Re: WSASocket,WSACleanup,WSAStartup,WSAGetLastError equivalent on HPUX 11.0

To the best of my knowledge, none of the calls you listed are required in Unix sockets programming.

For error checking, you need to include the following in your programs:

#include

extern int errno;


Whenever any of your socket calls fail, errno will contain an error value. The man pages for each socket call will detail what sort of errors will be returned.

Re: WSASocket,WSACleanup,WSAStartup,WSAGetLastError equivalent on HPUX 11.0

Yes. There is no need for these in the any of the *NIXes. They are required only in windows.

Do have a look at the classic tcp/ip tutorial in the rfc 1180.

http://www.faqs.org/rfcs/rfc1180.htm
l