WYRDTEK Home Features Reference Downloads About


Reference/es_sock_tcplinger

Syntax

int es_sock_tcplinger( int fd, int timeout );

Arguments

int fd File-descriptor of tcp/ip socket.
int timeout Timeout in seconds.

Description

Sets linger-on-close timeout socket option (SO_LINGER) for tcp/ip socket fd.

Returns zero on success and returns errno (from the standard library errno.h) on error.

[Back To Reference] [Back To Reference/es_sock]