BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

transport.h File Reference

Transport interface. More...

Data Structures

struct  pjmedia_sock_info
 
struct  pjmedia_transport_op
 
struct  pjmedia_transport
 
struct  pjmedia_transport_specific_info
 
struct  pjmedia_transport_info
 
struct  pjmedia_tp_cb_param
 
struct  pjmedia_transport_attach_param
 

Enumerations

enum  pjmedia_tranport_media_option {
  PJMEDIA_TPMED_NO_TRANSPORT_CHECKING = 1 ,
  PJMEDIA_TPMED_RTCP_MUX = 2
}
 
enum  pjmedia_transport_type {
  PJMEDIA_TRANSPORT_TYPE_UDP ,
  PJMEDIA_TRANSPORT_TYPE_ICE ,
  PJMEDIA_TRANSPORT_TYPE_SRTP ,
  PJMEDIA_TRANSPORT_TYPE_LOOP ,
  PJMEDIA_TRANSPORT_TYPE_USER
}
 

Functions

void pjmedia_transport_info_init (pjmedia_transport_info *info)
 
pj_status_t pjmedia_transport_get_info (pjmedia_transport *tp, pjmedia_transport_info *info)
 
void * pjmedia_transport_info_get_spc_info (pjmedia_transport_info *info, pjmedia_transport_type type)
 
pjmedia_transportpjmedia_transport_info_get_transport (pjmedia_transport_info *info, pjmedia_transport_type type)
 
pj_status_t pjmedia_transport_attach2 (pjmedia_transport *tp, pjmedia_transport_attach_param *att_param)
 
pj_status_t pjmedia_transport_attach (pjmedia_transport *tp, void *user_data, const pj_sockaddr_t *rem_addr, const pj_sockaddr_t *rem_rtcp, unsigned addr_len, void(*rtp_cb)(void *user_data, void *pkt, pj_ssize_t), void(*rtcp_cb)(void *usr_data, void *pkt, pj_ssize_t))
 
void pjmedia_transport_detach (pjmedia_transport *tp, void *user_data)
 
pj_status_t pjmedia_transport_send_rtp (pjmedia_transport *tp, const void *pkt, pj_size_t size)
 
pj_status_t pjmedia_transport_send_rtcp (pjmedia_transport *tp, const void *pkt, pj_size_t size)
 
pj_status_t pjmedia_transport_send_rtcp2 (pjmedia_transport *tp, const pj_sockaddr_t *addr, unsigned addr_len, const void *pkt, pj_size_t size)
 
pj_status_t pjmedia_transport_media_create (pjmedia_transport *tp, pj_pool_t *sdp_pool, unsigned options, const pjmedia_sdp_session *rem_sdp, unsigned media_index)
 
pj_status_t pjmedia_transport_encode_sdp (pjmedia_transport *tp, pj_pool_t *sdp_pool, pjmedia_sdp_session *sdp, const pjmedia_sdp_session *rem_sdp, unsigned media_index)
 
pj_status_t pjmedia_transport_media_start (pjmedia_transport *tp, pj_pool_t *tmp_pool, const pjmedia_sdp_session *sdp_local, const pjmedia_sdp_session *sdp_remote, unsigned media_index)
 
pj_status_t pjmedia_transport_media_stop (pjmedia_transport *tp)
 
pj_status_t pjmedia_transport_close (pjmedia_transport *tp)
 
pj_status_t pjmedia_transport_simulate_lost (pjmedia_transport *tp, pjmedia_dir dir, unsigned pct_lost)
 

Detailed Description

Media Transport Interface

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.