From: "hiro" <nishirotaka@viola.ocn.ne.jp>
To: <linux-kernel@vger.kernel.org>
Subject: SO_SNDTIMEO SO_RCVTIMEO[2.4.x]
Date: Thu, 11 Mar 2004 01:32:24 +0900 [thread overview]
Message-ID: <00b501c406bd$47e48240$0d02010a@BoomBoomBloom> (raw)
setsockopt option, SO_SNDTIMEO and SO_RCVTIMEO implemented?
in linux/net/core/sock.c sock_setsockopt follow
case SO_RCVTIMEO:
ret = sock_set_timeout(&sk->rcvtimeo, optval,
optlen);
break;
case SO_SNDTIMEO:
ret = sock_set_timeout(&sk->sndtimeo, optval,
optlen);
break;
timeval is setting socket buffer
but man 7 socket is ...
SO_RCVTIMEO and SO_SNDTIMEO
Specify the sending or receiving timeouts until reporting
anerror. They are
fixed to a protocol specific setting in Linux and cannotbe
read or written.
Their functionality can be emulated using alarm(2) or
setitimer(2).
man 7 scoket told me socket timeout can't change!!
Which is ture?
reply other threads:[~2004-03-10 16:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00b501c406bd$47e48240$0d02010a@BoomBoomBloom' \
--to=nishirotaka@viola.ocn.ne.jp \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®