bin_conn_t Struct Reference

Connection descriptor. More...

List of all members.

Public Attributes

int channel
int written
int flushed
void * addr
int size
l4_fpage_t fpage


Detailed Description

Connection descriptor.

A connection is a unit, related to a client. A connection is bound to a channel, multiple connections can use the same channel.

A connection is unused if the channel id is 0.

The protocol when writing data to a connection is as follows: One packet can be buffered in the connection descriptor. Each time the main-thread wants to store a packet in the connection descriptor, it writes the address and size in the addr and size fields and increments the written field. The flusher thread increments the flushed field, if the buffer was successfully flushed. Therefore, the main-thread can determine if the buffer is free by comparing the written and the flushed field.

Definition at line 38 of file stuff.h.


The documentation for this struct was generated from the following file:

Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6