Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
dtls-bio.c File Reference
#include <glib.h>
#include "dtls-bio.h"
#include "debug.h"
#include "mutex.h"
Include dependency graph for dtls-bio.c:

Data Structures

struct  janus_dtls_bio_filter

Typedefs

typedef struct
janus_dtls_bio_filter 
janus_dtls_bio_filter

Functions

void janus_dtls_bio_filter_set_mtu (int start_mtu)
 Set the MTU for the BIO filter.
int janus_dtls_bio_filter_write (BIO *h, const char *buf, int num)
long janus_dtls_bio_filter_ctrl (BIO *h, int cmd, long arg1, void *arg2)
int janus_dtls_bio_filter_new (BIO *h)
int janus_dtls_bio_filter_free (BIO *data)
BIO_METHOD * BIO_janus_dtls_filter (void)
 OpenSSL BIO filter for fragmentation constructor.

Typedef Documentation

Function Documentation

BIO_METHOD* BIO_janus_dtls_filter ( void  )

OpenSSL BIO filter for fragmentation constructor.

long janus_dtls_bio_filter_ctrl ( BIO *  h,
int  cmd,
long  arg1,
void *  arg2 
)
int janus_dtls_bio_filter_free ( BIO *  data)
int janus_dtls_bio_filter_new ( BIO *  h)
void janus_dtls_bio_filter_set_mtu ( int  start_mtu)

Set the MTU for the BIO filter.

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 (1472 by default)
int janus_dtls_bio_filter_write ( BIO *  h,
const char *  buf,
int  num 
)