IP_SetChannelID

IP_SetChannelID — sets the channel ID for IP library use.

Syntax

#include <cogent.h>

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