Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PhGetConnectInfo

PhGetConnectInfo

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

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()