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


Home
QNX Community Resources
QNX Documentation Library
PtConnectionReply, PtConnectionReplymx

PtConnectionReply, PtConnectionReplymx

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

PtConnectionReply(), PtConnectionReplymx()

Reply to a message from a client

Synopsis:

int PtConnectionReply(
        PtConnectionServer_t *connection, 
        int len, 
        void const *buf );
int PtConnectionReplymx(
        PtConnectionServer_t *connection,
        int rparts,
        iov_t *riov );

Library:

ph

Description:

The server in a connection uses these functions to reply to a message sent by a client with a call to PtConnectionSend() or PtConnectionSendmx().

Under QNX 4, the iov_t type is a synonym for struct _mxfer_entry. The riov[0] entry is reserved for headers used internally by the library; the "real" reply buffer are defined by the contents of riov[1] through riov[rparts-1].

Returns:

0
Success.
-1
An error occurred; errno is set.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtConnectionFlush(), PtConnectionNotify(), PtConnectionSend(), PtConnectionSendmx()

"Connections" in the Interprocess Communication chapter of the Photon Programmer's Guide