IP_GetChannelID

IP_GetChannelID — returns the channel ID for IP library use.

Syntax

#include <cogent.h>

int IP_GetChannelID(void);

Arguments

None.

Returns

The channel ID being used by the IP library, or -1 if no channel could be created.

Description

This function returns the channel ID to be used by the IP library functions. If there is no current channel set, then this function creates a new channel and returns that. Subsequent calls to this function will return the same channel.

See Also

Connections and Channels, IP_SetChannelID