IP_GetChannelID

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_GetChannelID`

`IP_GetChannelID` -- returns the channel ID for IP library use.

## Syntax

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

Prev | Home | Next
`IP_DetachPhotonMainloop` | Up | `IP_GetConnectionID`

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