* SO_SNDTIMEO SO_RCVTIMEO[2.4.x]
@ 2004-03-10 16:32 hiro
0 siblings, 0 replies; only message in thread
From: hiro @ 2004-03-10 16:32 UTC (permalink / raw)
To: linux-kernel
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-10 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 16:32 SO_SNDTIMEO SO_RCVTIMEO[2.4.x] hiro
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®