Create or use a channel (Neutrino only)
int PhChannelAttach( int channel, 
                     int connection,
                     struct sigevent_t const *event );
Use this function if you want the library to create a channel or use a channel that you've created.
![]()  | 
This function is for Neutrino only. | 
The event argument describes how Photon is to notify your application. If your application is using the widget library, pass NULL for event. For more information, see sigevent_t and ionotify() in the Neutrino Library Reference.
To create a channel and a connection:
PhChannelAttach( 0, -1, NULL )
To attach a channel chid and create a connection:
PhChannelAttach( chid, -1, NULL )
To attach channel chid and connection coid:
PhChannelAttach( chid, coid, NULL )
A channel ID, or -1 on error (errno is set).
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No |