Send/Receive functions

Functions for sending and receiving packets. More...

Functions

L4_CV int l4ore_send (int handle, char *buf, l4_size_t size)
 Send packet through the connection specified.
L4_CV int l4ore_recv_blocking (int handle, char **buf, l4_size_t *size, l4_timeout_t timeout)
 Receive packet. Block until a packet is available.
L4_CV int l4ore_recv_nonblocking (int handle, char **buf, unsigned int *size)
 Receive packet. Return immediately when no data available.

Detailed Description

Functions for sending and receiving packets.


Function Documentation

L4_CV int l4ore_recv_blocking ( int  handle,
char **  buf,
l4_size_t *  size,
l4_timeout_t  timeout 
)

Receive packet. Block until a packet is available.

Parameters:
handle connection handle
buf receive buffer
size receive buffer size
timeout IPC timeout
Returns:
0 success

<0 error

>0 if buffer is too small, the return value specifies the buffer size needed.

Definition at line 62 of file lib.c.

L4_CV int l4ore_recv_nonblocking ( int  handle,
char **  buf,
unsigned int *  size 
)

Receive packet. Return immediately when no data available.

Parameters:
handle connection handle
buf receive buffer
size receive buffer size
Returns:
0 success

<0 error

>0 if buffer is too small, the return value specifies the buffer size needed.

L4_CV int l4ore_send ( int  handle,
char *  buf,
l4_size_t  size 
)

Send packet through the connection specified.

Parameters:
handle connection handle
buf packet buffer
size packet size
Returns:
0 succes

<0 error

Definition at line 74 of file lib.c.


Generated on Wed Apr 11 06:37:32 2012 for ORe - a software network switch for L4 by  doxygen 1.5.6