rtpinterface.h
来自「rtsp协议的主要实现代码.对开发流媒体」· C头文件 代码 · 共 34 行
H
34 行
// RTPInterface.h: interface for the RTPInterface class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RTPINTERFACE_H__448DE26C_5719_4C39_ACC1_7E544A7EFCA1__INCLUDED_)
#define AFX_RTPINTERFACE_H__448DE26C_5719_4C39_ACC1_7E544A7EFCA1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "winsock.h"
#include <list>
using namespace std;
#include "Type.h"
class RTPInterface
{
public:
static RTPInterface * createNew();
RTPInterface(SOCKET s);
virtual ~RTPInterface();
int sendPacket(unsigned char * packet,unsigned long packetSize);
unsigned short GetBindPort();
void AddRtpDest(char * destIP,unsigned short destPort);
void RemoveRtpDest(char * destIP,unsigned short destPort);
private:
SOCKET m_s;
unsigned short m_BindPort;
list<TYPE_RTP_DEST*> m_lstRtpDest;
};
#endif // !defined(AFX_RTPINTERFACE_H__448DE26C_5719_4C39_ACC1_7E544A7EFCA1__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?