tinydtls  0.8.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Structures | Functions
session.h File Reference
#include <string.h>
#include "tinydtls.h"
#include "global.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Data Structures

struct  session_t
 

Functions

void dtls_session_init (session_t *sess)
 
int dtls_session_equals (const session_t *a, const session_t *b)
 

Function Documentation

int dtls_session_equals ( const session_t a,
const session_t b 
)

Compares the given session objects. This function returns 0 when a and b differ, 1 otherwise.

Definition at line 80 of file session.c.

void dtls_session_init ( session_t sess)

Resets the given session_t object sess to its default values. In particular, the member rlen must be initialized to the available size for storing addresses.

Parameters
sessThe session_t object to initialize.

Definition at line 73 of file session.c.