Fork me on GitHub
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:


void janus_dtls_bio_agent_set_mtu (int start_mtu)
 Set the MTU for the BIO agent writer. More...
int janus_dtls_bio_agent_init (void)
 OpenSSL BIO agent writer initialization. More...
BIO * BIO_janus_dtls_agent_new (struct janus_dtls_srtp *dtls)
 OpenSSL BIO agent writer constructor. More...

Function Documentation

BIO* BIO_janus_dtls_agent_new ( struct janus_dtls_srtp dtls)

OpenSSL BIO agent writer constructor.

int janus_dtls_bio_agent_init ( void  )

OpenSSL BIO agent writer initialization.

void janus_dtls_bio_agent_set_mtu ( int  start_mtu)

Set the MTU for the BIO agent writer.

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
start_mtuThe MTU to start from (1472 by default)