tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Wigg, David" <David.Wigg () wang ! com>
To: tru64-unix-managers
Subject: socket connect timeout adjustable?
Date: Tue, 26 Jan 1999 14:40:42 +0000	[thread overview]
Message-ID: <96079034715841.tru64-unix-managers.marc@archive.invalid> (raw)


Hi managers,
		I have a C program that uses socket communication over TCP
to communicate with various hosts. Currently, when I issue a connect to a
host that is uncontactable, the connect call takes 75 seconds to return
before it decides the host is unreachable. What I want it to do is to fail
after say 3 or 4 seconds. I have tried setting send and recv timeouts using
setsockopt, but I still have the same problem. The man pages for setsockopt
suggests there is a way to make the socket non blocking, but I can't find
any info on how to do this. Could someone point in the direction of some
suitable info?

Thanks

Best Regards,

Dave

David Wigg
Senior Consultant
Solutions Integration, Wang Global, 
Phone: +44(0)161 848 4146
Email  : david.wigg@wang.com

mailto:david.wigg@wang.com

                 reply	other threads:[~1999-01-26 14:40 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