* TCP Programming: Howto set timeout??
@ 1996-04-03 5:00 Bernd Mueller
0 siblings, 0 replies; only message in thread
From: Bernd Mueller @ 1996-04-03 5:00 UTC (permalink / raw)
Subject: TCP Programming: Howto set timeout??
Hi,
I am writing an application including some data transfer with tcp.
It works fine, but I want the call of recv(..) to terminate after a certain
timeout is reached. I use the
setsockopt(socket,SOL_SOCKET , SO_RCVTIMEO, &timeout, sizeof(int))
but it does not show any effect.
Using the protocol level IPPROTO_TCP as the second argument leads to an error
in setsockopt.
What am I doing wrong??
Is anyone in this group experienced with TCP programming and can give me a
clue?
Thanks in advance
Bernd Mueller
Forschungszentrum Karlsruhe
mueller@iai.fzk.de
P.S. We are running OSF1 V.3.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-04-03 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-03 5:00 TCP Programming: Howto set timeout?? Bernd Mueller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox