TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
Loading...
Searching...
No Matches
session.h File Reference

Session logic. More...

#include "locator.h"
#include <protocol/protocol.h>
#include <util/util.h>
#include <netinet/in.h>
Include dependency graph for session.h:
This graph shows which files directly or indirectly include this file:

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_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.

Detailed Description

Session logic.

Logic for session communication, receive loop thread

Function Documentation

◆ session_loop()

void * session_loop ( void * arg)

Session loop.

Parameters
argOf type (void*){ manager_t *m, session_t *s }
Here is the call graph for this function: