IP_GetConnectionID

IP_GetConnectionID — returns the connection ID for IP library use.

Syntax

#include <cogent.h>

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