Operating System - HP-UX
1834167 Members
2419 Online
110064 Solutions
New Discussion

Socket communication in HPUX

 
Kenneth Yap
Frequent Advisor

Socket communication in HPUX

Dear Expert,
Is there any kernel parameter can be set forcontrol the socket transaction or it depend on the application itself ?

Thanks
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Socket communication in HPUX

Hi:

I'm not quite sure for what you're looking. The application defines the socket properties such as IP address and port number.

There are TCP/IP timing parameters that control the birth-and-death cycle of a connecton. Take a look at the man pages for 'ndd'. For instance to see all TCP related parameters, do:

# ndd -get /dev/tcp ?

...JRF...
Vincenzo Restuccia
Honored Contributor

Re: Socket communication in HPUX

A. Clay Stephenson
Acclaimed Contributor

Re: Socket communication in HPUX

Hi Kenneth,

As James mentioned a few of the parameters are set at the kernel/driver level but the vast majority is done at the application level.
e.g. Blocking vs. Non-blocking I/O, Connection Oriented Service vs Connectionless Service.

If you can be a bit more specific in your question, perhaps a better answer can be provided.

Regards, Clay
If it ain't broke, I can fix that.
Brian Hackley
Honored Contributor

Re: Socket communication in HPUX

Kenneth,
Sockets programs control their own fate in general, just like a program that writes to any file (a socket is generally just another file descriptor). man setsockopt(2) for more specifics, and also look at the example programs on any HPUX system in:
/usr/lib/demos/networking/socket
Reference: "Unix Network Programming" by Stevens. Also http://docs.hp.com -> Networking/Communications -> LAN/9000 -> BSD Sockets Interface Programmer's Guide
Hope this helps,
-> Brian Hackley
Ask me about telecommuting!