anyKode Marilou
DeviceEmitterReceiver::SendTo (int, int, const void *, int, bool, M32 *, void *)

Sending a message to a specified session.

int SendTo(int CommunicationSession, int ToCommunicationSession, const void * pData, int BytesCount, bool bWaitComplete = false, M32 * piDeviceResponse = NULL, void * pReserved = NULL);
int CommunicationSession 
[in] Session identifier of the caller. 
int ToCommunicationSession 
[in] Session identifier of the receiver. 
const void * pData 
[in] Pointer to data to be sent. 
int BytesCount 
[in] Bytes count 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!