* socket connect timeout adjustable?
@ 1999-01-26 14:40 Wigg, David
0 siblings, 0 replies; only message in thread
From: Wigg, David @ 1999-01-26 14:40 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-01-26 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-26 14:40 socket connect timeout adjustable? Wigg, David
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox