h324port.h
来自「基于NMS的video access 3.1编写的DEMO程序 实现2个功能 」· C头文件 代码 · 共 64 行
H
64 行
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <process.h>
#include <ctadef.h>
#include <adidef.h>
#include <swidef.h>
#include <h324def.h>
#include <mspdef.h>
#include <mspcmd.h>
#include <endian.h>
#ifndef H324PORT_H
#define H324PORT_H
class TH324Port
{
public:
int OpenServices(int board, int timeslot, int userid, const char *ip);
void FreeRes();
bool Start324Stack();
bool SetLocalCaps();
bool SetupCall();
void WaitNmsEvent(CTAHD ctahd, CTA_EVENT *eventp);
bool StartMSP(int localport, int remoteport);
bool StopMSP();
void OnMspEvent(CTA_EVENT *pEvent);
void OnRemoteCap(CTA_EVENT *pEvent);
void OnLcd(CTA_EVENT *pEvent);
bool CreateVideoEp();
bool DisableVideoEp();
bool Enable2429VideoEp();
bool EnableVideoEp();
bool CreatVideoChannel();
bool ConnectVideoEP();
bool EnableVideoChannel();
bool CreateAudioEp();
bool CreatAudioChannel();
bool ConnectAudioEP();
bool EnableAudioChannel();
public:
CTAQUEUEHD m_quehd;
CTAHD m_ctahd;
int m_board;
int m_timeslot;
int m_userid;
char m_LocalIP[20];
int m_localport, m_remoteport;
int m_mspstate;
MSPHD m_muxep;
MSPHD m_videoep;
MSPHD m_audioep;
MSPHD m_videochannel;
MSPHD m_audiochannel;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?