⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ice.h

📁 基于osip、eXosip、speex、ffmpeg的VoIP源代码
💻 H
字号:
/*mediastreamer2 library - modular sound and video processing and streamingCopyright (C) 2006  Simon MORLAT (simon.morlat@linphone.org)This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/#ifndef ice_hh#define ice_hh#include "ortp/stun_udp.h"#include "ortp/stun.h"#include "ortp/ortp.h"/* list of state for STUN connectivity check */#define TESTING 0#define WAITING 1#define RECV_VALID 2#define SEND_VALID 3#define VALID 4#define INVALID 5struct SdpCandidate {    int  seq_num;    char candidate_id[256];    char password[256];    char fqdn[256];    char ipaddr[256];    int  port;    int  mapped_port;    int  peer_derived; /* 0: local 1: stun 2: turn */    float priority;};struct CandidatePair {    struct SdpCandidate local_candidate;    struct SdpCandidate remote_candidate;    int max_sn;    int min_sn;    char max_candidate_id[256];    UInt128 tid;    int connectivity_check;};#ifdef __cplusplusextern "C"{#endifint ice_sound_send_stun_request(RtpSession *session, struct CandidatePair *remote_candidates, int round);int ice_process_stun_message(RtpSession *session, struct CandidatePair *remote_candidates, OrtpEvent *evt);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -