From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,57bbe7212aa6b08d,start X-Google-Attributes: gidfee84,public From: Bill Reid Subject: Socket time out Date: 1995/07/20 Message-ID: #1/1 X-Deja-AN: 106587472 sender: news@crash.cts.com (news subsystem) content-type: text/plain; charset=us-ascii organization: Simpact Associates, Inc. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.2b1 (Windows; I; 16bit) 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