Pike v8.1 release 6

Method Stdio.Fd()->setsockopt()


Method setsockopt

bool setsockopt(int level, int opt, int state)

Description

Set socket options like Stdio.SO_KEEPALIVE. This function is always available; the presence or absence of the option constants indicates availability of those features.

Returns

1 if successful, 0 if not (and sets errno())

See also

set_keepalive()