ze-filter  (ze-filter-0.8.0-develop-180218)
ze-ipc.h File Reference

Go to the source code of this file.

Macros

#define CHAN_FATHER   1
 
#define CHAN_CHILD   0
 
#define SEND_MSG_CHANNEL(p, msg, who)   send_message(((who) == CHAN_FATHER ? (p)[1] : (p)[0], (msg))
 
#define __ZE_IPC_H
 

Functions

int open_channel (int *)
 
int send_msg_channel (int[], int, int)
 
int recv_msg_channel (int[], int *, int)
 
bool send_message_pipe (int, int)
 
bool recv_message_pipe (int, int *)
 

Macro Definition Documentation

◆ __ZE_IPC_H

#define __ZE_IPC_H

Definition at line 41 of file ze-ipc.h.

◆ CHAN_CHILD

#define CHAN_CHILD   0

Definition at line 28 of file ze-ipc.h.

◆ CHAN_FATHER

#define CHAN_FATHER   1

Definition at line 27 of file ze-ipc.h.

◆ SEND_MSG_CHANNEL

#define SEND_MSG_CHANNEL (   p,
  msg,
  who 
)    send_message(((who) == CHAN_FATHER ? (p)[1] : (p)[0], (msg))

Definition at line 38 of file ze-ipc.h.

Function Documentation

◆ open_channel()

int open_channel ( int *  )

Definition at line 39 of file ze-ipc.c.

◆ recv_message_pipe()

bool recv_message_pipe ( int  ,
int *   
)

Definition at line 158 of file ze-ipc.c.

◆ recv_msg_channel()

int recv_msg_channel ( int  [],
int *  ,
int   
)

◆ send_message_pipe()

bool send_message_pipe ( int  ,
int   
)

Definition at line 126 of file ze-ipc.c.

◆ send_msg_channel()

int send_msg_channel ( int  [],
int  ,
int   
)