IP_SetChannelID

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_SetChannelID`

`IP_SetChannelID` -- sets the channel ID for IP library use.

## Syntax

``void IP_SetChannelID`(int chid);`

## Arguments

`chid`

  A channel ID.

## Returns

None.

## Description

This function sets the channel ID to be used by the IP library. This is stored in a static variable within the library and is accessible with `IP_GetChannelID`. This function is normally only needed when interfacing to a facility that implements its own event loop and has already created a channel ID. Photon is such a facility.

## See Also

Connections and Channels, `IP_GetChannelID`

Prev | Home | Next
`IP_SelectFD` | Up | `IP_SetConnectionID`

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