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/pt/ptgetrcvidpid.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/pt/ptgetrcvidpid.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/pt/ptgetrcvidpid.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/pt/ptgetrcvidpid.html on line 8

PtGetRcvidPid()

Get the PID from a RCVID

Synopsis:

pid_t PtGetRcvidPid( int rcvid );

Library:

ph

Description:

This function should be used to obtain the process ID (PID) from the receive ID (RCVID). It might be needed if a nonspecific input procedure attaches a specific input procedure.

Returns:

The PID, or -1 on error.

Examples:

int general_input_proc( void *data, pid_t rcvid,
                        void *msg, size_t size)
{
    PtAppAddInput( NULL, PtGetRcvidPid(rcvid),
                   function, data );
    #if defined(__QNXNTO__)
        MsgReplyv( rcvid, ... );
    #else
        Reply( rcvid, ... );
    #endif
    return Pt_END;
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAppAddInput(), PtAppAddInputRemote(), PtGetRcvidPidNd()


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/pt/ptgetrcvidpid.html on line 107

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/pt/ptgetrcvidpid.html on line 107