PhGetConnectInfo()

Get information about a Photon channel

Synopsis:

PhConnectId_t PhGetConnectInfo(
                  PhConnectId_t coid,
                  PhConnectInfo_t *buf);

Library:

ph

Description:

This function fills *buf with information about the specified Photon channel. If coid is zero, information about the calling process is returned. If it isn't zero but doesn't match any existing channel, then the next monotonically greater channel ID is used. If coid is greater than any existing channel ID, -1 is returned and errno is set to ESRCH.

The PhConnectInfo_t structure includes at least the following members:

Returns:

The channel ID (the same as buf->id), or -1 if the call fails.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhGetConnectId()