![]() |
TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
|
Session logic. More...
#include "locator.h"#include <protocol/protocol.h>#include <util/util.h>#include <db/trib.h>#include <netinet/in.h>

Go to the source code of this file.
Data Structures | |
| struct | session_t |
| Session object. More... | |
Enumerations | |
| enum | session_state_t { STATE_IDLE , STATE_CONNECT , STATE_ACTIVE , STATE_OPENSENT , STATE_OPENCONFIRM , STATE_ESTABLISHED } |
| Session states. | |
Functions | |
| void | session_change_state (session_t *s, session_state_t new_state) |
| Change session state. | |
| int | send_notification (int fd, int code, int subcode) |
| Send notification helper. | |
| const char * | id_str (uint32_t id) |
| LSID string. | |
| void * | session_loop (void *arg) |
| Session loop. | |
| void | session_update (const session_t *s, uint32_t local_id, uint32_t local_itad) |
| Update session. | |
| void | session_shutdown (session_t *session) |
| Shutdown socket, terminate connection and thread. | |
| void | session_destroy (session_t *session) |
| Destroy session object. | |
Variables | |
| const char * | session_state_strs [] |
| Session state strings. | |
Session logic.
Logic for session communication, receive loop thread
| void * session_loop | ( | void * | arg | ) |
| void session_update | ( | const session_t * | s, |
| uint32_t | local_id, | ||
| uint32_t | local_itad ) |
Update session.
Send UPDATEs to peer according to new entries in Adj-TRIB-Out
