IP_TaskConnect

IP_TaskConnect — opens a connection to a receiver.

Syntax

#include <cogent.h>

int IP_TaskConnect(IP_Task* receiver);

Arguments

receiver

A task to which a connection should be made.

Returns

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

Description

This function opens a connection between the current task and the receiver. This connection remains open until the receiver task structure is destroyed. It is not normally necessary to call this function, as the IP_TaskSend* functions do this on your behalf.

See Also

Sending Messages, IP_TaskSendSync, IP_TaskSendAsync, IP_TaskSendRaw