- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Explanation for setsockopt()
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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.