IP_GetConnectionID

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_GetConnectionID`

`IP_GetConnectionID` -- returns the connection ID for IP library use.

## Syntax

``int IP_GetConnectionID`(void);`

## Arguments

None.

## Returns

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

## Description

This function returns the connection ID to be used by the IP library functions. If there is no current connection, then this function creates a new connection and returns that. This function calls `IP_GetChannelID`, possibly also creating a new channel.

## See Also

Connections and Channels, `IP_SetConnectionID`

Prev | Home | Next
`IP_GetChannelID` | Up | `IP_IsPulse`

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