IP_ListenToPort

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_ListenToPort`

`IP_ListenToPort` -- is a wrapper for `listen`.

## Syntax

``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`

Prev | Home | Next
`IP_IsPulse` | Up | `IP_ListenToService`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.