资源简介
RTMPdump(包括libRTMP)的VS2005可以编译通过的源代码。
代码片段和文件信息
/* RTMPDump
* Copyright (C) 2009 Andrej Stepanchuk
* Copyright (C) 2009 Howard Chu
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RTMPDump; see the file COPYING. If not write to
* the Free Software Foundation Inc. 51 Franklin Street Fifth Floor
* Boston MA 02110-1301 USA.
* http://www.gnu.org/copyleft/gpl.html
*
*/
#define _FILE_OFFSET_BITS 64
#include “stdint.h“
#include
#include
#include
#include
#include // to catch Ctrl-C
//#include
#include “librtmp/rtmp_sys.h“
#include “librtmp/log.h“
#include “XGetopt.h“
#ifdef WIN32
#define fseeko fseek //o64
#define ftello ftell //o64
#include
#include
#define SET_BINMODE(f) setmode(fileno(f) O_BINARY)
#else
#define SET_BINMODE(f)
#endif
#define RD_SUCCESS 0
#define RD_FAILED 1
#define RD_INCOMPLETE 2
#define DEF_TIMEOUT 30 /* seconds */
#define DEF_BUFTIME (10 * 60 * 60 * 1000) /* 10 hours default */
#define DEF_SKIPFRM 0
// starts sockets
int
InitSockets()
{
#ifdef WIN32
WORD version;
WSADATA wsaData;
version = MAKEWORD(1 1);
return (WSAStartup(version &wsaData) == 0);
#else
return TRUE;
#endif
}
inline void
CleanupSockets()
{
#ifdef WIN32
WSACleanup();
#endif
}
#ifdef _DEBUG
uint32_t debugTS = 0;
int pnum = 0;
FILE *netstackdump = 0;
FILE *netstackdump_read = 0;
#endif
uint32_t nIgnoredFlvframeCounter = 0;
uint32_t nIgnoredframeCounter = 0;
#define MAX_IGNORED_frameS 50
FILE *file = 0;
void
sigIntHandler(int sig)
{
RTMP_ctrlC = TRUE;
RTMP_LogPrintf(“Caught signal: %d cleaning up just a second...\n“ sig);
// ignore all these signals now and let the connection close
signal(SIGINT SIG_IGN);
signal(SIGTERM SIG_IGN);
#ifndef WIN32
signal(SIGHUP SIG_IGN);
signal(SIGPIPE SIG_IGN);
signal(SIGQUIT SIG_IGN);
#endif
}
#define HEX2BIN(a) (((a)&0x40)?((a)&0xf)+9:((a)&0xf))
int hex2bin(char *str char **hex)
{
char *ptr;
int i l = strlen(str);
if (l & 1)
return 0;
*hex = (char *)malloc(l/2);
ptr = *hex;
if (!ptr)
return 0;
for (i=0; i *ptr++ = (HEX2BIN(str[i]) << 4) | HEX2BIN(str[i+1]);
return l/2;
}
static const AVal av_onmetaData = AVC(“onmetaData“);
static const AVal av_duration = AVC(“duration“);
static const AVal av_conn = AVC(“conn“);
static const AVal av_token = AVC(“token“);
static const AVal av_playlist = AVC(“playlist“);
static const AVal av_true = AVC(“true“);
int
OpenResum
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-01-12 06:09 rtmpdump\librtmp\
文件 24745 2010-10-31 05:56 rtmpdump\librtmp\amf.cpp
文件 5475 2011-01-12 05:54 rtmpdump\librtmp\amf.h
文件 2507 2011-01-12 05:54 rtmpdump\librtmp\bytes.h
文件 8264 2011-01-12 05:54 rtmpdump\librtmp\dh.h
文件 9575 2010-10-29 09:03 rtmpdump\librtmp\dhgroups.h
文件 31415 2010-10-31 06:02 rtmpdump\librtmp\handshake.h
文件 15467 2010-11-01 07:14 rtmpdump\librtmp\hashswf.cpp
文件 1637 2010-10-29 09:03 rtmpdump\librtmp\http.h
文件 252 2010-10-29 09:03 rtmpdump\librtmp\librtmp.pc.in
文件 4546 2010-10-29 09:03 rtmpdump\librtmp\log.cpp
文件 1905 2011-01-12 05:54 rtmpdump\librtmp\log.h
文件 6561 2010-11-01 07:21 rtmpdump\librtmp\parseurl.cpp
文件 112730 2011-01-12 05:53 rtmpdump\librtmp\rtmp.cpp
文件 9538 2011-01-12 05:54 rtmpdump\librtmp\rtmp.h
文件 3702 2010-10-29 09:03 rtmpdump\librtmp\rtmp_sys.h
目录 0 2011-01-12 06:02 rtmpdump\OpenSSL-Win32\
目录 0 2011-01-12 06:01 rtmpdump\OpenSSL-Win32\include\
目录 0 2011-01-12 06:01 rtmpdump\OpenSSL-Win32\include\openssl\
文件 5459 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\aes.h
文件 2986 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\appli
文件 53502 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\asn1.h
文件 31029 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\asn1t.h
文件 19714 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\asn1_mac.h
文件 31678 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\bio.h
文件 5163 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\blowfish.h
文件 35843 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\bn.h
文件 4759 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\buffer.h
文件 4957 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\camellia.h
文件 4485 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\cast.h
文件 19543 2010-06-06 01:50 rtmpdump\OpenSSL-Win32\include\openssl\cms.h
............此处省略157个文件信息
相关资源
- 基于TE6410的WINCE系统的录入学生成绩程
- 使用ffmpeg api解码h264视频码流,并且能
- 健身管理网站visual studio 2005
- 完整的打印机监控源码
- protobuf3在vs2005中的使用
- 运用定时器函数制作计时器
- vs2005-camshift.rar
- 简单记事本vs2005
- 作业抄袭检测系统毕业是论文
- 在Vs2005下的三线法相机标定
- ClamAV的VS2005工程源码
- 基于海思3516v300编译的rtmpdump库文件以
- rtmpdump实现flv视频推流demo程序
- VS2005中调用NI绘图控件CWGraph
- VS2005番茄助手
- 软件开发常用的小图标
- DXFlib来读取DXF文件
- vs2005学生信息管理系统
- usbview 的vs2005工程
- 专业程序员必备 VS2005 程序字体颜色设
- \\VS2005C《图像编程精髓从开发自己的
- rtmpdump实现rtmp视频拉流存储的demo程序
- msdbg2.dll
- Icompiocomp.v3.04.SP2.Full在VS2005环境下的应
- VS2005下可用的mscomm组件
- vs2005在线压缩、解压缩文件源码
- RDLC报表开发
- vs2005下使用winhttp的头文件和lib文件
- QT 4.5.0 with vs2003 vs2005 vs2008
- Microsoft Visual Studio 2005
评论
共有 条评论