IP_ListenToPort

IP_ListenToPort — is a wrapper for listen.

Syntax

#include <cogent.h>

int IP_ListenToPort(int port, int backlog);

Arguments

port

A port number.

backlog

The number of connection requests that are allowed to be simultaneously pending.

Returns

The file descriptor (socket), or -1 and errno is set.

Description

This function wraps the listen library call, and registers the resulting file descriptor with the IP_Receive function.

See Also

Working with TCP/IP, IP_ListenToService, IP_ConnectToPort