webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
rtp.h File Reference
#include "srtp.h"

Go to the source code of this file.

Classes

struct  rtp_msg_t
 
struct  rtp_sender_ctx_t
 
struct  rtp_receiver_ctx_t
 

Macros

#define RTP_HEADER_LEN   12
 
#define RTP_MAX_BUF_LEN   16384
 

Typedefs

typedef srtp_hdr_t rtp_hdr_t
 
typedef struct rtp_sender_ctx_t rtp_sender_ctx_t
 
typedef struct rtp_receiver_ctx_t rtp_receiver_ctx_t
 
typedef struct rtp_sender_ctx_trtp_sender_t
 
typedef struct rtp_receiver_ctx_trtp_receiver_t
 

Functions

int rtp_sendto (rtp_sender_t sender, const void *msg, int len)
 
int rtp_recvfrom (rtp_receiver_t receiver, void *msg, int *len)
 
int rtp_receiver_init (rtp_receiver_t rcvr, int sock, struct sockaddr_in addr, unsigned int ssrc)
 
int rtp_sender_init (rtp_sender_t sender, int sock, struct sockaddr_in addr, unsigned int ssrc)
 
int srtp_sender_init (rtp_sender_t rtp_ctx, struct sockaddr_in name, srtp_sec_serv_t security_services, unsigned char *input_key)
 
int srtp_receiver_init (rtp_receiver_t rtp_ctx, struct sockaddr_in name, srtp_sec_serv_t security_services, unsigned char *input_key)
 
int rtp_sender_init_srtp (rtp_sender_t sender, const srtp_policy_t *policy)
 
int rtp_sender_deinit_srtp (rtp_sender_t sender)
 
int rtp_receiver_init_srtp (rtp_receiver_t sender, const srtp_policy_t *policy)
 
int rtp_receiver_deinit_srtp (rtp_receiver_t sender)
 
rtp_sender_t rtp_sender_alloc (void)
 
void rtp_sender_dealloc (rtp_sender_t rtp_ctx)
 
rtp_receiver_t rtp_receiver_alloc (void)
 
void rtp_receiver_dealloc (rtp_receiver_t rtp_ctx)
 

Macro Definition Documentation

◆ RTP_HEADER_LEN

#define RTP_HEADER_LEN   12

◆ RTP_MAX_BUF_LEN

#define RTP_MAX_BUF_LEN   16384

Typedef Documentation

◆ rtp_hdr_t

◆ rtp_receiver_ctx_t

◆ rtp_receiver_t

◆ rtp_sender_ctx_t

◆ rtp_sender_t

Function Documentation

◆ rtp_receiver_alloc()

rtp_receiver_t rtp_receiver_alloc ( void  )

◆ rtp_receiver_dealloc()

void rtp_receiver_dealloc ( rtp_receiver_t  rtp_ctx)

◆ rtp_receiver_deinit_srtp()

int rtp_receiver_deinit_srtp ( rtp_receiver_t  sender)

◆ rtp_receiver_init()

int rtp_receiver_init ( rtp_receiver_t  rcvr,
int  sock,
struct sockaddr_in  addr,
unsigned int  ssrc 
)

◆ rtp_receiver_init_srtp()

int rtp_receiver_init_srtp ( rtp_receiver_t  sender,
const srtp_policy_t policy 
)

◆ rtp_recvfrom()

int rtp_recvfrom ( rtp_receiver_t  receiver,
void msg,
int *  len 
)

◆ rtp_sender_alloc()

rtp_sender_t rtp_sender_alloc ( void  )

◆ rtp_sender_dealloc()

void rtp_sender_dealloc ( rtp_sender_t  rtp_ctx)

◆ rtp_sender_deinit_srtp()

int rtp_sender_deinit_srtp ( rtp_sender_t  sender)

◆ rtp_sender_init()

int rtp_sender_init ( rtp_sender_t  sender,
int  sock,
struct sockaddr_in  addr,
unsigned int  ssrc 
)

◆ rtp_sender_init_srtp()

int rtp_sender_init_srtp ( rtp_sender_t  sender,
const srtp_policy_t policy 
)

◆ rtp_sendto()

int rtp_sendto ( rtp_sender_t  sender,
const void msg,
int  len 
)

◆ srtp_receiver_init()

int srtp_receiver_init ( rtp_receiver_t  rtp_ctx,
struct sockaddr_in  name,
srtp_sec_serv_t  security_services,
unsigned char *  input_key 
)

◆ srtp_sender_init()

int srtp_sender_init ( rtp_sender_t  rtp_ctx,
struct sockaddr_in  name,
srtp_sec_serv_t  security_services,
unsigned char *  input_key 
)