Introduction   Client Library API Reference   Demo1   Demo2   Demo3   File List   Index  

server-library API

Functions the server uses to communicate with the client. More...

Functions

int receive_event_reply (l4_threadid_t client, l4events_ch_t event_ch, l4events_nr_t event_nr, l4events_event_t event)
 Makes the reply for an receive of an event.
int send_event_reply (l4_uint16_t result, l4_threadid_t client, l4events_nr_t event_nr)
 Makes the reply to the sender after a send call.
int get_ack_reply (l4_threadid_t client, l4_uint8_t res, l4events_ch_t channel_nr, l4events_nr_t event_nr)
 Makes the reply to the sender after a get-ack call.
int send_timeout (l4_threadid_t server)
 This function is used only internally.
void server_loop (void *server_param)
 Makes the main server loop for client handling client requests.

Detailed Description

Functions the server uses to communicate with the client.


Function Documentation

int receive_event_reply ( l4_threadid_t  client,
l4events_ch_t  event_ch,
l4events_nr_t  event_nr,
l4events_event_t  event 
)

Makes the reply for an receive of an event.

Parameters:
client threadid of the client
event_ch channel of the received event
event_nr number of the received event
event received event
Returns:
indicates a successful opration

int send_event_reply ( l4_uint16_t  result,
l4_threadid_t  client,
l4events_nr_t  event_nr 
)

Makes the reply to the sender after a send call.

Parameters:
result result value from send operation
client threadid of the client
event_nr unique number of this event
Returns:
indicates a successful opration

int get_ack_reply ( l4_threadid_t  client,
l4_uint8_t  res,
l4events_ch_t  channel_nr,
l4events_nr_t  event_nr 
)

Makes the reply to the sender after a get-ack call.

Parameters:
client threadid of the client
res result value from get-ack call
channel_nr number of the channel
event_nr number of the event
Returns:
indicates a successful opration

int send_timeout ( l4_threadid_t  server  ) 

This function is used only internally.

Parameters:
threadid of the client
Returns:
indicates a successful opration

void server_loop ( void *  server_param  ) 

Makes the main server loop for client handling client requests.


Events Reference Manual, written by Torsten Frenzel  © 2003