- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Explanation for setsockopt()
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 04:34 PM
тАО03-30-2006 04:34 PM
Explanation for setsockopt()
I am experiencing a delay when i sent message with size of 2200 bytes from my server program on HP-11 to the client program which is running on windows dos box.
Everytime when a message of size 2200 bytes is sent there is a delay in receiving the next request from the client. I was using the following options for the socket ,
setsockopt(circuit,SOL_SOCKET,SO_KEEPALIVE,(char *)&one,sizeof(one));
when i changed it to
setsockopt(circuit,IPPROTO_TCP,TCP_NODELAY,(char *)&one,sizeof(one));
the program started working fine.
Could anyone please explain to me what is the difference in the above two setsockop() defenitions and what caused the dealy in the previous case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 05:09 PM
тАО03-30-2006 05:09 PM
Re: Explanation for setsockopt()
http://www.informatik.uni-frankfurt.de/doc/man/hpux/getsockopt.2.html
http://devrsrc1.external.hp.com/STK/cgi-bin/display-manpage.cgi?manpage=setsockopt§ion=2&manOSName=hpux&manOSVersion=11.00
http://devrsrc1.external.hp.com/STKS/cgi-bin/man2html?manpage=/usr/share/man/man2.Z/getsockopt.2
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 05:13 PM
тАО03-30-2006 05:13 PM
Re: Explanation for setsockopt()
man setsockopt
man tcp
in fact, the second setsockopt() doesn't contradict first one, but just adds the TCP option that "causes small amounts of output to be sent immediately",
"If TCP_NODELAY is set, the system sends small amounts of output immediately rather than gathering them into a single packet after an acknowledgement is received."
antonio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 05:18 PM
тАО03-30-2006 05:18 PM
Re: Explanation for setsockopt()
Does it mean that i can set two options together like mentioned below for my socket??
setsockopt(circuit,SOL_SOCKET,SO_KEEPALIVE,(char *)&one,sizeof(one));
setsockopt(circuit,IPPROTO_TCP,TCP_NODELAY,(char *)&one,sizeof(one));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2006 01:09 PM
тАО03-31-2006 01:09 PM
Re: Explanation for setsockopt()
To fully see what is happening, please take and post a tusc system call trace and a tcpdump packet trace of your server program talking to the Windows client.