Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 8
Get information about a Photon channel
PhConnectId_t PhGetConnectInfo(
PhConnectId_t coid,
PhConnectInfo_t *buf);
ph
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:
- unsigned long flags — a combination of flags that describes the channel:
- Ph_PROC_VIRTUAL — the process is the Photon server
- Ph_PROC_BLOCKED — the process is "Reply-blocked" on a server (for example, pwm)
- Ph_PROC_HELD — the process is held on someone else's queue
- PhChannelParms_t parms — the channel's parameters; see PhAttach()
- PhConnectId_t block — if Ph_PROC_BLOCKED is set, this is the ID of the server. Otherwise, if Ph_PROC_HELD is set, it's the ID of one of the apps whose event queue this process is trying to overflow. (It's possible for both these flags to be set if the application is multithreaded.)
- unsigned num_q_entries — the number of events in the queue
- unsigned buf_len — the size of the application's event buffer
- PhConnectId_t id — the connector ID
- int nid — the node descriptor
- pid_t pid — the process ID
- unsigned long chev_sense — the application's sensitivity to channel events
The channel ID (the same as buf->id), or -1
if the call fails.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PhGetConnectId()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 128
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phgetconnectinfo.html on line 128