WYRDTEK Home Features Reference Downloads About


Reference/es_sock_tcplisten

Syntax

int es_sock_tcplisten( int fd, int port, int maxconnections );

Arguments

int fd File-descriptor of tcp/ip socket.
int port Port number.
int maxconnections Maximum number of allowable connections.

Description

Set SO_REUSEADDR socket option and listen() on port number port using tcp/ip socket fd. maxconnections designates the maximum number of simultaneous connecting clients.

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

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