WYRDTEK Home Features Reference Downloads About


Reference/es_sock_tcpaccept

Syntax

int es_sock_tcpaccept( int fd, int *newfd );

Arguments

int fd File-descriptor of tcp/ip socket.
int *newfd Assigned file descriptor of new connection. Passed by reference.

Description

accept()s new client connection on tcp/ip socket file descriptor fd. Assign file descriptor of new connection to newfd.

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

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