IP_TaskSendRaw

IP_TaskSendRaw — sends data in bytes, synchronously.

Syntax

#include <cogent.h>
int IP_TaskSendRaw(IP_Task*  receiver,
 char*  outbuf,
 int  lout,
 char*  inbuf,
 int  lin);

Arguments

myself

A task structure referring to the current task.

receiver

The task receiving the message.

outbuf

The message data to send.

lout

The number of bytes of data to send.

inbuf

The buffer to receive the reply.

lin

The maximum number of bytes in the reply.

Returns

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

Description

This function transmits a number of bytes synchronously to the receiver, and waits for the receiver to reply. There is no limit to how long the receiver may delay prior to replying. The reply data will be written into inbuf, up to lin bytes. If the inbuf data area is not large enough to accommodate the entire reply, then the result is OS-dependent. This will change in future versions of this API.

See Also

Sending Messages, IP_TaskSendSync, IP_TaskSendAsync