Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bill Reid <breid@cts.com>
Subject: Socket time out
Date: 1995/07/20	[thread overview]
Message-ID: <DC1A2J.62I@crash.cts.com> (raw)

I have a question on using the setdockopt() function to set socket
timeouts. By all indications from the manual, etc. I should be able
to set my send timeout by using the following:

   int iOptVal = 2; /* 2 seconds */
   int iOptSize = sizeof(iOptVal);

   setsockopt(socket, SOL_SOCKET, SO_SNDTIMEO, &iOptval, iOptSize);

This works on SunOS, Solaris, HPUX, NT(Intel) and NT(alpha) but
I get an error on DEC OSF1 (errno = 22, invalid). Has anyone else
run into this problem? Any help would be appreciated.

Thx.  Bill Reid (San Diego, Ca.) e-mail: breid@cts.com




                 reply	other threads:[~1995-07-20  4: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