My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Attributes | List of all members
routing_table Struct Reference

The core of the routing system, the routing table lists a route's destinations. More...

Public Attributes

int id
 
int type_id
 The type-id associated with the destinations in this table. More...
 
pthread_rwlock_t rwlock
 Protects access to the destinations so they cannot be changed while they are being read. More...
 
int n_endpoints
 The number of destinations this route contains. More...
 
uint32_t keys [128]
 The keys associated with each of the destinations. More...
 
struct msu_endpoint endpoints [128]
 The destinations themselves. More...
 

Detailed Description

The core of the routing system, the routing table lists a route's destinations.

The routing_table is kept private so the rwlock can be enfoced. All destinations in a routing table must have the same type_id.

Definition at line 47 of file routing.c.

Member Data Documentation

struct msu_endpoint routing_table::endpoints[128]

The destinations themselves.

Definition at line 54 of file routing.c.

int routing_table::id

Definition at line 48 of file routing.c.

uint32_t routing_table::keys[128]

The keys associated with each of the destinations.

Definition at line 53 of file routing.c.

int routing_table::n_endpoints

The number of destinations this route contains.

Definition at line 52 of file routing.c.

pthread_rwlock_t routing_table::rwlock

Protects access to the destinations so they cannot be changed while they are being read.

Definition at line 50 of file routing.c.

int routing_table::type_id

The type-id associated with the destinations in this table.

Definition at line 49 of file routing.c.


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