Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mueller@PROBLEM_WITH_INEWS_GATEWAY_FILE (Bernd Mueller)
Subject: TCP Programming: Howto set timeout??
Date: 1996/04/03	[thread overview]
Message-ID: <4jt8fd$aud@hdihp3.fzk.de> (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




                 reply	other threads:[~1996-04-03  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox