IP_TaskSendAsync

IP_TaskSendAsync — transmits a message via qserve and returns immediately.

Syntax

#include <cogent.h>
int IP_TaskSendAsync(IP_Task*  myself,
 IP_Task*  receiver,
 IP_Msg*  smsg,
 int  priority);

Arguments

myself

A task structure referring to the current task.

receiver

The task receiving the message.

smgs

The message structure containing the data to send.

priority

The queue priority for this message..

Returns

0 on success, or -1 on failure and errno is set.

Description

This function transmits a message from myself to the receiver via qserve, and returns immediately. This is nominally a non-blocking call, though it is in fact implemented as a synchronous send to qserve, which itself is non-blocking. There is no reply from the receiver.

See Also

Sending Messages, IP_TaskInitAsync, IP_TaskWaitAsync, IP_TaskCloseAsync, IP_TaskSendSync, IP_TaskSendRaw