On Tue, 02 Mar 1999, Benjamin Vera-Tudela wrote:
>Hi all .... is anybody familiar with getsockopt ()???? If so, I am trying
>to get the default send and receive timeout values at the socket layer by
>using SO_RCVTIMEO and SO_SNDTIMEO under linux, but the compiler tells me
>that these 2 identifiers are undefined. Now, when trying to get the
>default send and receive buffer sizes using SO_RCVBUF and SO_SNDBUF, the
>compiler gives no errors and getsockopt () returns in one of its
>parameters the value 65535 (which I believe is correct). Does anybody know
>what the problems are under linux are with SO_SNDTIMEO and SO_RCVTIMEO???

There's no problem. According to getsockopt(2):

SYNOPSIS
       #include <sys/types.h>
       #include <sys/socket.h>

sys/socket.h includes asm/socket.h, which contains your values.

Taral
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to