nufw_session_t Struct Reference

#include <tls.h>


Data Fields

nussl_sessionnufw_client
GMutex * tls_lock
in6_addr peername
unsigned char proto_version
gint usage
gboolean alive
time_t connect_timestamp


Detailed Description

This structure stores all information relative to a connection from a nufw server.

Definition at line 99 of file tls.h.


Field Documentation

gboolean nufw_session_t::alive

This flag is used to indicate that current session is dead and wait for cleaning (when set to FALSE). This is needed to avoid a structure destruction whereas there is connection_t that depends on it to send answer to nufw server.

Definition at line 121 of file tls.h.

Referenced by tls_nufw_accept().

time_t nufw_session_t::connect_timestamp

Connection timestamp

Definition at line 123 of file tls.h.

Referenced by tls_nufw_accept().

nussl_session* nufw_session_t::nufw_client

Definition at line 101 of file tls.h.

Referenced by clean_nufw_session(), tls_nufw_accept(), and treat_nufw_request().

struct in6_addr nufw_session_t::peername

Definition at line 109 of file tls.h.

Referenced by create_message_packet(), take_decision(), and tls_nufw_accept().

unsigned char nufw_session_t::proto_version

Definition at line 110 of file tls.h.

Referenced by tls_nufw_accept(), and treat_nufw_request().

GMutex* nufw_session_t::tls_lock

This lock has to be used before any call to gnutls_record function on TLS session pointed by the nufw_session_t

Definition at line 107 of file tls.h.

Referenced by clean_nufw_session(), and tls_nufw_accept().

gint nufw_session_t::usage

usage stores the number of packets currently depending of this session for their answer. It is modified by atomic operation.

Definition at line 115 of file tls.h.

Referenced by acquire_nufw_session_by_socket(), get_nufw_session(), and tls_nufw_accept().


The documentation for this struct was generated from the following file:
Generated on Thu Nov 20 04:00:45 2008 for NuFW by  doxygen 1.4.7