![]() |
TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
|
#include "session.h"#include "manager.h"#include "protocol/protocol.h"#include <logging/logging.h>#include <util/util.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <unistd.h>#include <pthread.h>#include <arpa/inet.h>
Macros | |
| #define | _COMPONENT_ "session" |
Functions | |
| const char * | id_str (uint32_t id) |
| LSID string. | |
| 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. | |
| void * | session_loop (void *arg) |
| Session loop. | |
| 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. | |
Implements P2P connection between two LS.
| void * session_loop | ( | void * | arg | ) |
| const char* session_state_strs[] |
Session state strings.