Fork me on GitHub
Loading...
Searching...
No Matches
Functions
dtls-bio.c File Reference
#include <glib.h>
#include "dtls-bio.h"
#include "debug.h"
#include "ice.h"
#include "mutex.h"
Include dependency graph for dtls-bio.c:

Functions

void janus_dtls_bio_agent_set_mtu (int start_mtu)
 Set the MTU for the BIO agent writer.
 
int janus_dtls_bio_agent_get_mtu (void)
 Return which MTU was configured for the BIO agent writer.
 
int janus_dtls_bio_agent_init (void)
 OpenSSL BIO agent writer initialization.
 
BIO * BIO_janus_dtls_agent_new (void *dtls)
 OpenSSL BIO agent writer constructor.
 

Function Documentation

◆ BIO_janus_dtls_agent_new()

BIO * BIO_janus_dtls_agent_new ( void * dtls)

OpenSSL BIO agent writer constructor.

◆ janus_dtls_bio_agent_get_mtu()

int janus_dtls_bio_agent_get_mtu ( void )

Return which MTU was configured for the BIO agent writer.

Returns
The MTU the stack will start from for each session

◆ janus_dtls_bio_agent_init()

int janus_dtls_bio_agent_init ( void )

OpenSSL BIO agent writer initialization.

◆ janus_dtls_bio_agent_set_mtu()

void janus_dtls_bio_agent_set_mtu ( int start_mtu)

Set the MTU for the BIO agent writer.

Note
The default starting MTU is 1472, in case fragmentation is needed the OpenSSL DTLS stack automatically decreases it. That said, if you know for sure the MTU in the network Janus is deployed in is smaller than that, it makes sense to configure an according value to start from
Parameters
start_mtuThe MTU to start from (1200 by default)