anyKode Marilou
|
Sending a message to a specified session.
int SendTo(int CommunicationSession, int ToCommunicationSession, const xkode::lib::Array<MU8> & Data, bool bWaitComplete = false, M32 * piDeviceResponse = NULL, void * pReserved = NULL);
Parameters |
Description |
int CommunicationSession |
[in] Session identifier of the caller. |
int ToCommunicationSession |
[in] Session identifier of the receiver. |
const xkode::lib::Array<MU8> & Data |
[in] Data to be sent. |
bool bWaitComplete = false |
[in] indicates if the function must wait the receiver acknowledgment before returning. |
M32 * piDeviceResponse = NULL |
(see Message) |
void * pReserved = NULL |
(see Message) |
MODA_EOK if the message was posted.
If bWaitComplete is set to true, the returned value can be MODA_EWAITCOMPLETETIMEOUT if the message was not sent to the receiver or MODA_EREJECTED if the receiver session was deleted. If the message was sent to the receiver device the returned value is MODA_EOK: in this case it is not possible to be sure that the message has been read by the receiver session.
Send sends a message to the specified session.
Marilou 4.7.0
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|