资 源 简 介
很完整的RTSP获取码流的代码,
#ifdef _WIN32_WCE
#include "stdafx.h"
#endif
#ifndef _WIN32_WCE
#define WIN32_LEAN_AND_MEAN
#endif
#include
#include
#include
#include
#include
#include
#include
#ifdef _WIN32_WCE
#pragma comment(lib, "ws2.lib")
#else
#pragma comment(lib, "ws2_32.lib")
#endif
#define PP_NAME "User-Agent:rtsp client(v1.0)"
#define PP_CRLF "/r/n"
//测a试?之?用?
long InitSocket();
long DeInitSocket();
long InitTCPSocket(int port);
long InitUDPSocket(const char *ip, int port);
long GetSokcetPort(int sock, int *port);