Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
0eb82e46
Commit
0eb82e46
authored
Apr 25, 2017
by
xiongzilaing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码
parent
5ae69f6e
隐藏空白字符变更
内嵌
并排
正在显示
75 个修改的文件
包含
244 行增加
和
236 行删除
+244
-236
.settings/language.settings.xml
+3
-3
src/Codec/AACEncoder.cpp
+2
-3
src/Codec/AACEncoder.h
+0
-1
src/Codec/H264Encoder.h
+1
-3
src/Device/Device.cpp
+4
-4
src/Device/Device.h
+3
-3
src/Device/PlayerProxy.cpp
+3
-3
src/Device/PlayerProxy.h
+1
-1
src/H264/H264Parser.cpp
+1
-0
src/H264/H264Parser.h
+2
-2
src/Http/HttpSession.cpp
+1
-1
src/Http/HttpSession.h
+1
-1
src/Http/HttpsSession.h
+1
-0
src/Http/strCoding.cpp
+1
-1
src/Http/strCoding.h
+0
-4
src/MedaiFile/HLSMaker.cpp
+1
-1
src/MedaiFile/HLSMaker.h
+2
-1
src/MedaiFile/MediaReader.cpp
+2
-2
src/MedaiFile/MediaReader.h
+1
-1
src/MedaiFile/MediaRecorder.cpp
+3
-4
src/MedaiFile/MediaRecorder.h
+1
-1
src/MedaiFile/Mp4Maker.cpp
+4
-4
src/MedaiFile/Mp4Maker.h
+4
-4
src/MedaiFile/TSMaker.cpp
+1
-1
src/MedaiFile/TSMaker.h
+4
-4
src/MediaSender.h
+2
-1
src/Player/MediaPlayer.cpp
+2
-2
src/Player/MediaPlayer.h
+3
-3
src/Player/Player.cpp
+2
-2
src/Player/PlayerBase.cpp
+3
-3
src/Player/PlayerBase.h
+4
-4
src/RTP/RtpMaker.h
+3
-3
src/RTP/RtpMakerAAC.cpp
+2
-2
src/RTP/RtpMakerAAC.h
+5
-4
src/RTP/RtpMakerH264.cpp
+2
-2
src/RTP/RtpMakerH264.h
+4
-3
src/Rtmp/Rtmp.h
+3
-9
src/Rtmp/RtmpMediaSource.cpp
+1
-1
src/Rtmp/RtmpMediaSource.h
+10
-11
src/Rtmp/RtmpParser.h
+5
-3
src/Rtmp/RtmpPlayer.cpp
+4
-3
src/Rtmp/RtmpPlayer.h
+8
-8
src/Rtmp/RtmpPlayerImp.h
+3
-3
src/Rtmp/RtmpProtocol.cpp
+4
-3
src/Rtmp/RtmpProtocol.h
+6
-6
src/Rtmp/RtmpPusher.cpp
+3
-3
src/Rtmp/RtmpPusher.h
+1
-1
src/Rtmp/RtmpSession.h
+2
-3
src/Rtmp/RtmpToRtspMediaSource.cpp
+2
-2
src/Rtmp/RtmpToRtspMediaSource.h
+8
-8
src/Rtmp/amf.cpp
+4
-3
src/Rtmp/amf.h
+3
-2
src/Rtsp/RtpBroadCaster.cpp
+3
-3
src/Rtsp/RtpBroadCaster.h
+7
-6
src/Rtsp/RtpParser.cpp
+4
-2
src/Rtsp/RtpParser.h
+4
-3
src/Rtsp/Rtsp.cpp
+2
-1
src/Rtsp/Rtsp.h
+3
-2
src/Rtsp/RtspMediaSource.cpp
+1
-1
src/Rtsp/RtspMediaSource.h
+9
-9
src/Rtsp/RtspPlayer.cpp
+2
-2
src/Rtsp/RtspPlayer.h
+13
-11
src/Rtsp/RtspPlayerImp.h
+5
-5
src/Rtsp/RtspSession.cpp
+6
-7
src/Rtsp/RtspSession.h
+3
-4
src/Rtsp/RtspToRtmpMediaSource.cpp
+6
-5
src/Rtsp/RtspToRtmpMediaSource.h
+3
-3
src/Rtsp/UDPServer.cpp
+2
-0
src/Rtsp/UDPServer.h
+8
-5
src/Shell/CMD.h
+5
-3
src/Shell/ShellSession.cpp
+2
-2
src/config.h
+1
-2
test/DeviceHK.cpp
+1
-1
test/DeviceHK.h
+1
-1
test/test.cpp
+7
-7
没有找到文件。
.settings/language.settings.xml
查看文件 @
0eb82e46
...
...
@@ -5,7 +5,7 @@
<provider
copy-of=
"extension"
id=
"org.eclipse.cdt.ui.UserLanguageSettingsProvider"
/>
<provider-reference
id=
"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider-reference
id=
"org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider
class=
"org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector"
console=
"false"
env-hash=
"
2101233173096
"
id=
"org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector"
keep-relative-paths=
"false"
name=
"CDT Cross GCC Built-in Compiler Settings"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<provider
class=
"org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector"
console=
"false"
env-hash=
"
689079599215608580
"
id=
"org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector"
keep-relative-paths=
"false"
name=
"CDT Cross GCC Built-in Compiler Settings"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<language-scope
id=
"org.eclipse.cdt.core.gcc"
/>
<language-scope
id=
"org.eclipse.cdt.core.g++"
/>
</provider>
...
...
@@ -16,7 +16,7 @@
<provider
copy-of=
"extension"
id=
"org.eclipse.cdt.ui.UserLanguageSettingsProvider"
/>
<provider-reference
id=
"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider-reference
id=
"org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider
class=
"org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector"
console=
"false"
env-hash=
"-
863197511674744034
"
id=
"org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector"
keep-relative-paths=
"false"
name=
"CDT Cross GCC Built-in Compiler Settings"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<provider
class=
"org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector"
console=
"false"
env-hash=
"-
1841186106001966342
"
id=
"org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector"
keep-relative-paths=
"false"
name=
"CDT Cross GCC Built-in Compiler Settings"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<language-scope
id=
"org.eclipse.cdt.core.gcc"
/>
<language-scope
id=
"org.eclipse.cdt.core.g++"
/>
</provider>
...
...
@@ -27,7 +27,7 @@
<provider
copy-of=
"extension"
id=
"org.eclipse.cdt.ui.UserLanguageSettingsProvider"
/>
<provider-reference
id=
"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider-reference
id=
"org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider"
ref=
"shared-provider"
/>
<provider
class=
"org.eclipse.cdt.managedbuilder.internal.language.settings.providers.GCCBuiltinSpecsDetectorCygwin"
console=
"false"
env-hash=
"-
1608958325086134348
"
id=
"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetectorCygwin"
keep-relative-paths=
"false"
name=
"CDT GCC Built-in Compiler Settings Cygwin"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<provider
class=
"org.eclipse.cdt.managedbuilder.internal.language.settings.providers.GCCBuiltinSpecsDetectorCygwin"
console=
"false"
env-hash=
"-
541592762162302216
"
id=
"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetectorCygwin"
keep-relative-paths=
"false"
name=
"CDT GCC Built-in Compiler Settings Cygwin"
parameter=
"${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}""
prefer-non-shared=
"true"
>
<language-scope
id=
"org.eclipse.cdt.core.gcc"
/>
<language-scope
id=
"org.eclipse.cdt.core.g++"
/>
</provider>
...
...
src/Codec/AACEncoder.cpp
查看文件 @
0eb82e46
...
...
@@ -5,16 +5,15 @@
* Author: xzl
*/
#ifdef ENABLE_FAAC
#include <cstdlib>
#include "AACEncoder.h"
#include "Util/logger.h"
#include <cstdlib>
#ifdef __cplusplus
extern
"C"
{
#endif
#include <faac.h>
#ifdef __cplusplus
}
#endif
...
...
src/Codec/AACEncoder.h
查看文件 @
0eb82e46
...
...
@@ -8,7 +8,6 @@
#ifndef CODEC_AACENCODER_H_
#define CODEC_AACENCODER_H_
namespace
ZL
{
namespace
Codec
{
...
...
src/Codec/H264Encoder.h
查看文件 @
0eb82e46
...
...
@@ -7,17 +7,15 @@
#ifndef CODEC_H264ENCODER_H_
#define CODEC_H264ENCODER_H_
#include <cstdint>
#ifdef __cplusplus
extern
"C"
{
#endif //__cplusplus
#include <x264.h>
#ifdef __cplusplus
}
#endif //__cplusplus
namespace
ZL
{
...
...
src/Device/Device.cpp
查看文件 @
0eb82e46
...
...
@@ -5,14 +5,14 @@
* Author: xzl
*/
#include <stdio.h>
#include <stdio.h>
#include "base64.h"
#include "Device.h"
#include "Util/logger.h"
#include <stdio.h>
#include "Util/util.h"
#include <cstdio>
#include "base64.h"
#include "Util/TimeTicker.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/Device/Device.h
查看文件 @
0eb82e46
...
...
@@ -7,14 +7,16 @@
#ifndef DEVICE_DEVICE_H_
#define DEVICE_DEVICE_H_
#include <sys/time.h>
#include <memory>
#include <string>
#include <functional>
#include <memory>
#include "Util/util.h"
#include "RTP/RtpMakerAAC.h"
#include "RTP/RtpMakerH264.h"
#include "Rtsp/RtspToRtmpMediaSource.h"
using
namespace
std
;
using
namespace
ZL
::
Rtsp
;
using
namespace
ZL
::
Util
;
...
...
@@ -29,7 +31,6 @@ using namespace ZL::Codec;
using
namespace
ZL
::
Codec
;
#endif //ENABLE_X264
using
namespace
ZL
::
Rtsp
;
namespace
ZL
{
namespace
DEV
{
...
...
@@ -46,7 +47,6 @@ public:
int
iSampleRate
;
};
class
DevChannel
{
public
:
typedef
std
::
shared_ptr
<
DevChannel
>
Ptr
;
...
...
src/Device/PlayerProxy.cpp
查看文件 @
0eb82e46
...
...
@@ -5,12 +5,12 @@
* Author: xzl
*/
#include "config.h"
#include "PlayerProxy.h"
#include "
Thread/AsyncTaskThread
.h"
#include "
Util/mini
.h"
#include "Util/MD5.h"
#include "Util/logger.h"
#include "config.h"
#include "Util/mini.hpp"
#include "Thread/AsyncTaskThread.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Thread
;
...
...
src/Device/PlayerProxy.h
查看文件 @
0eb82e46
...
...
@@ -8,8 +8,8 @@
#ifndef SRC_DEVICE_PLAYERPROXY_H_
#define SRC_DEVICE_PLAYERPROXY_H_
#include "Device.h"
#include <memory>
#include "Device.h"
#include "Player/MediaPlayer.h"
#include "Util/TimeTicker.h"
...
...
src/H264/H264Parser.cpp
查看文件 @
0eb82e46
...
...
@@ -8,6 +8,7 @@
#include "H264Parser.h"
#include "Util/logger.h"
using
namespace
ZL
::
Util
;
H264Parser
::
H264Parser
(){
...
...
src/H264/H264Parser.h
查看文件 @
0eb82e46
//
// H264Parser.h
pp
// H264Parser.h
// MediaPlayer
//
// Created by xzl on 2017/1/16.
...
...
@@ -11,8 +11,8 @@
#include <stdio.h>
#include <string>
#include "h264_parser.h"
#include "h264_poc.h"
#include "h264_parser.h"
using
namespace
std
;
...
...
src/Http/HttpSession.cpp
查看文件 @
0eb82e46
...
...
@@ -17,7 +17,7 @@
#include "Util/util.h"
#include "Util/TimeTicker.h"
#include "Util/onceToken.h"
#include "Util/mini.h
pp
"
#include "Util/mini.h"
#include "Util/NoticeCenter.h"
using
namespace
ZL
::
Util
;
...
...
src/Http/HttpSession.h
查看文件 @
0eb82e46
...
...
@@ -8,10 +8,10 @@
#ifndef SRC_HTTP_HTTPSESSION_H_
#define SRC_HTTP_HTTPSESSION_H_
#include <functional>
#include "config.h"
#include "Rtsp/Rtsp.h"
#include "Network/TcpLimitedSession.h"
#include <functional>
using
namespace
std
;
using
namespace
ZL
::
Network
;
...
...
src/Http/HttpsSession.h
查看文件 @
0eb82e46
...
...
@@ -11,6 +11,7 @@
#include "HttpSession.h"
#include "Util/SSLBox.h"
#include "Util/TimeTicker.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/Http/strCoding.cpp
查看文件 @
0eb82e46
...
...
@@ -5,8 +5,8 @@
* Author: xzl
*/
#include "strCoding.h"
#include <string.h>
#include "strCoding.h"
namespace
ZL
{
namespace
Http
{
...
...
src/Http/strCoding.h
查看文件 @
0eb82e46
...
...
@@ -11,10 +11,6 @@
#include <iostream>
#include <string>
#ifdef _WINDOWS
#include <windows.h>
#endif
using
namespace
std
;
namespace
ZL
{
...
...
src/MedaiFile/HLSMaker.cpp
查看文件 @
0eb82e46
...
...
@@ -5,8 +5,8 @@
* Author: root
*/
#include "HLSMaker.h"
#include <sys/time.h>
#include "HLSMaker.h"
namespace
ZL
{
namespace
MediaFile
{
...
...
src/MedaiFile/HLSMaker.h
查看文件 @
0eb82e46
...
...
@@ -8,12 +8,13 @@
#ifndef HLSMAKER_H_
#define HLSMAKER_H_
#include "config.h"
#include "TSMaker.h"
#include "Util/TimeTicker.h"
#include "Util/File.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "config.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/MedaiFile/MediaReader.cpp
查看文件 @
0eb82e46
...
...
@@ -5,10 +5,10 @@
* Author: xzl
*/
#include "config.h"
#include "MediaReader.h"
#include "Util/mini.h"
#include "Http/HttpSession.h"
#include "config.h"
#include "Util/mini.hpp"
using
namespace
ZL
::
Util
;
...
...
src/MedaiFile/MediaReader.h
查看文件 @
0eb82e46
...
...
@@ -8,9 +8,9 @@
#ifndef SRC_MEDAIFILE_MEDIAREADER_H_
#define SRC_MEDAIFILE_MEDIAREADER_H_
#include "Device/Device.h"
#include "Rtsp/RtspMediaSource.h"
#include "Rtmp/RtmpMediaSource.h"
#include "Device/Device.h"
#ifdef ENABLE_MEDIAFILE
#include <mp4v2/mp4v2.h>
...
...
src/MedaiFile/MediaRecorder.cpp
查看文件 @
0eb82e46
...
...
@@ -6,12 +6,11 @@
*/
#include "config.h"
#include "Network/sockutil.h"
#include "MediaRecorder.h"
#include "Util/util.h"
#include "Http/HttpSession.h"
#include "config.h"
#include "Util/mini.hpp"
#include "Util/util.h"
#include "Util/mini.h"
#include "Network/sockutil.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Network
;
...
...
src/MedaiFile/MediaRecorder.h
查看文件 @
0eb82e46
...
...
@@ -8,8 +8,8 @@
#ifndef SRC_MEDAIFILE_MEDIARECORDER_H_
#define SRC_MEDAIFILE_MEDIARECORDER_H_
#include "Player/PlayerBase.h"
#include <memory>
#include "Player/PlayerBase.h"
#ifdef ENABLE_MEDIAFILE
#include "Mp4Maker.h"
#include "HLSMaker.h"
...
...
src/MedaiFile/Mp4Maker.cpp
查看文件 @
0eb82e46
#ifdef ENABLE_MEDIAFILE
#include "MediaRecorder.h"
#include <netinet/in.h>
#include <sys/stat.h>
#include "
Util/File
.h"
#include "
config
.h"
#include "Mp4Maker.h"
#include "MediaRecorder.h"
#include "Util/File.h"
#include "Util/mini.h"
#include "Util/NoticeCenter.h"
#include "config.h"
#include "Util/mini.hpp"
using
namespace
ZL
::
Util
;
...
...
src/MedaiFile/Mp4Maker.h
查看文件 @
0eb82e46
...
...
@@ -11,17 +11,17 @@
#ifdef ENABLE_MEDIAFILE
#include <mutex>
#include "Player/PlayerBase.h"
#include <memory>
#include "Util/logger.h"
#include <mp4v2/mp4v2.h>
#include "Player/PlayerBase.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "Util/TimeTicker.h"
#include <mp4v2/mp4v2.h>
#include "Util/TimeTicker.h"
using
namespace
std
;
using
namespace
ZL
::
Player
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Player
;
namespace
ZL
{
namespace
MediaFile
{
...
...
src/MedaiFile/TSMaker.cpp
查看文件 @
0eb82e46
...
...
@@ -5,9 +5,9 @@
* Author: root
*/
#include <sys/time.h>
#include "TSMaker.h"
#include "Util/logger.h"
#include <sys/time.h>
using
namespace
ZL
::
Util
;
...
...
src/MedaiFile/TSMaker.h
查看文件 @
0eb82e46
...
...
@@ -8,17 +8,17 @@
#ifndef TSMAKER_H_
#define TSMAKER_H_
#include "CRC/crc32.h"
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <string>
#include <iostream>
#include "CRC/crc32.h"
#include "Util/File.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
#define TS_PACKET_SIZE 188
#define TS_PACKET_HEADER 4
#define TS_SYNC_BYTE 0x47
...
...
src/MediaSender.h
查看文件 @
0eb82e46
...
...
@@ -7,7 +7,8 @@
#ifndef SRC_MEDIASENDER_H_
#define SRC_MEDIASENDER_H_
#include "Thread/ThreadPool.hpp"
#include "Thread/ThreadPool.h"
using
namespace
ZL
::
Thread
;
class
MediaSender
{
...
...
src/Player/MediaPlayer.cpp
查看文件 @
0eb82e46
...
...
@@ -5,10 +5,10 @@
* Author: xzl
*/
#include <algorithm>
#include "MediaPlayer.h"
#include "Rtmp/RtmpPlayerImp.h"
#include "Rtsp/RtspPlayerImp.h"
#include "MediaPlayer.h"
#include <algorithm>
using
namespace
ZL
::
Rtmp
;
using
namespace
ZL
::
Rtsp
;
...
...
src/Player/MediaPlayer.h
查看文件 @
0eb82e46
...
...
@@ -8,12 +8,12 @@
#ifndef SRC_PLAYER_MEDIAPLAYER_H_
#define SRC_PLAYER_MEDIAPLAYER_H_
#include <memory>
#include <string>
#include "Player.h"
#include "PlayerBase.h"
#include <string>
#include <memory>
using
namespace
std
;
using
namespace
std
;
namespace
ZL
{
namespace
Player
{
...
...
src/Player/Player.cpp
查看文件 @
0eb82e46
...
...
@@ -5,12 +5,12 @@
* Author: xzl
*/
#include <cstring>
#include "Player.h"
#include "H264/SPSParser.h"
#include <cstring>
#include "Util/logger.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Util
;
static
unsigned
const
samplingFrequencyTable
[
16
]
=
{
96000
,
88200
,
64000
,
48000
,
44100
,
32000
,
24000
,
22050
,
16000
,
12000
,
11025
,
...
...
src/Player/PlayerBase.cpp
查看文件 @
0eb82e46
...
...
@@ -5,11 +5,11 @@
* Author: xzl
*/
#include <algorithm>
#include "PlayerBase.h"
#include "Rtmp/RtmpPlayerImp.h"
#include "Rtsp/RtspPlayerImp.h"
#include "Rtsp/Rtsp.h"
#include <algorithm>
#include "Rtsp/RtspPlayerImp.h"
#include "Rtmp/RtmpPlayerImp.h"
using
namespace
std
;
using
namespace
ZL
::
Rtmp
;
...
...
src/Player/PlayerBase.h
查看文件 @
0eb82e46
...
...
@@ -8,18 +8,18 @@
#ifndef SRC_PLAYER_PLAYERBASE_H_
#define SRC_PLAYER_PLAYERBASE_H_
#include "Player.h"
#include "Network/Socket.hpp"
#include <functional>
#include <memory>
#include <string>
#include <functional>
#include "Player.h"
#include "Network/Socket.h"
using
namespace
std
;
using
namespace
ZL
::
Network
;
namespace
ZL
{
namespace
Player
{
class
PlayerBase
{
public
:
typedef
std
::
shared_ptr
<
PlayerBase
>
Ptr
;
...
...
src/RTP/RtpMaker.h
查看文件 @
0eb82e46
...
...
@@ -9,11 +9,11 @@
#define RTP_RTPMAKER_H_
#include "Rtsp/RtspMediaSource.h"
#include "Util/ResourcePool.h"
#include "Util/logger.h"
#include "Util/RingBuffer.h
pp
"
#include "Util/RingBuffer.h"
#include "Util/TimeTicker.h"
#include "Thread/ThreadPool.hpp"
#include "Util/ResourcePool.h"
#include "Thread/ThreadPool.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Thread
;
...
...
src/RTP/RtpMakerAAC.cpp
查看文件 @
0eb82e46
...
...
@@ -6,9 +6,9 @@
*/
#include <netinet/in.h>
#include "RtpMakerAAC.h"
#include "config.h"
#include "Util/mini.hpp"
#include "RtpMakerAAC.h"
#include "Util/mini.h"
using
namespace
ZL
::
Util
;
...
...
src/RTP/RtpMakerAAC.h
查看文件 @
0eb82e46
...
...
@@ -7,14 +7,15 @@
#ifndef RTP_RTPMAKERAAC_H_
#define RTP_RTPMAKERAAC_H_
#include <memory>
#include "RtpMaker.h"
#include "Rtsp/RtspMediaSource.h"
#include "Util/logger.h"
#include "Util/RingBuffer.hpp"
#include "RtpMaker.h"
#include <memory>
#include "Util/RingBuffer.h"
#include "Util/ResourcePool.h"
using
namespace
std
;
using
namespace
std
;
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/RTP/RtpMakerH264.cpp
查看文件 @
0eb82e46
...
...
@@ -6,9 +6,9 @@
*/
#include <netinet/in.h>
#include "RtpMakerH264.h"
#include "config.h"
#include "Util/mini.hpp"
#include "RtpMakerH264.h"
#include "Util/mini.h"
using
namespace
ZL
::
Util
;
...
...
src/RTP/RtpMakerH264.h
查看文件 @
0eb82e46
...
...
@@ -8,11 +8,12 @@
#ifndef RTP_RTPMAKERH264_H_
#define RTP_RTPMAKERH264_H_
#include <memory>
#include "RtpMaker.h"
#include "Rtsp/RtspMediaSource.h"
#include "Util/logger.h"
#include "Util/RingBuffer.hpp"
#include "RtpMaker.h"
#include <memory>
#include "Util/RingBuffer.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Rtsp
;
...
...
src/Rtmp/Rtmp.h
查看文件 @
0eb82e46
...
...
@@ -2,22 +2,18 @@
#define __rtmp_h
#include <netinet/in.h>
#include "Util/util.h"
#include <string>
#include <memory>
#include <string>
#include "Util/util.h"
#include "Util/logger.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
#define PORT 1935
#define DEFAULT_CHUNK_LEN 128
#define PACKED __attribute__((packed))
#define HANDSHAKE_PLAINTEXT 0x03
#define RANDOM_LEN (1536 - 8)
#define MSG_SET_CHUNK 1
/*Set Chunk Size (1)*/
...
...
@@ -36,7 +32,6 @@ using namespace ZL::Util;
#define MSG_OBJECT 19
/*Shared Object Message (19, 16) AMF0*/
#define MSG_AGGREGATE 22
/*Aggregate Message (22)*/
#define CONTROL_STREAM_BEGIN 0
#define CONTROL_STREAM_EOF 1
#define CONTROL_STREAM_DRY 2
...
...
@@ -45,7 +40,6 @@ using namespace ZL::Util;
#define CONTROL_PING_REQUEST 6
#define CONTROL_PING_RESPONSE 7
#define STREAM_CONTROL 0
#define STREAM_MEDIA 1
...
...
src/Rtmp/RtmpMediaSource.cpp
查看文件 @
0eb82e46
...
...
@@ -7,8 +7,8 @@
#include "RtmpMediaSource.h"
#include "MedaiFile/MediaReader.h"
using
namespace
ZL
::
MediaFile
;
using
namespace
ZL
::
MediaFile
;
namespace
ZL
{
namespace
Rtmp
{
...
...
src/Rtmp/RtmpMediaSource.h
查看文件 @
0eb82e46
...
...
@@ -8,24 +8,23 @@
#ifndef SRC_RTMP_RTMPMEDIASOURCE_H_
#define SRC_RTMP_RTMPMEDIASOURCE_H_
#include "config.h"
#include <netinet/in.h>
#include
"Util/NoticeCenter.h"
#include
"Util/ResourcePool.h"
#include
<mutex>
#include
<memory>
#include <string>
#include <functional>
#include <memory>
#include "Util/RingBuffer.hpp"
#include <unordered_map>
#include <mutex>
#include "Util/logger.h"
#include "Thread/ThreadPool.hpp"
#include "Util/TimeTicker.h"
#include "amf.h"
#include "Rtmp.h"
#include "
Util/util
.h"
#include "
config
.h"
#include "MediaSender.h"
#include <mutex>
#include "Util/util.h"
#include "Util/logger.h"
#include "Util/RingBuffer.h"
#include "Util/TimeTicker.h"
#include "Util/ResourcePool.h"
#include "Util/NoticeCenter.h"
#include "Thread/ThreadPool.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpParser.h
查看文件 @
0eb82e46
...
...
@@ -8,16 +8,18 @@
#ifndef SRC_RTMP_RTMPPARSER_H_
#define SRC_RTMP_RTMPPARSER_H_
#include "Rtmp.h"
#include <functional>
#include <unordered_map>
#include "amf.h"
#include "Rtmp.h"
#include "Player/Player.h"
#include <unordered_map>
#include "Util/TimeTicker.h"
#include <functional>
#include "Player/PlayerBase.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Player
;
namespace
ZL
{
namespace
Rtmp
{
...
...
src/Rtmp/RtmpPlayer.cpp
查看文件 @
0eb82e46
...
...
@@ -6,11 +6,12 @@
*/
#include "RtmpPlayer.h"
#include "Thread/ThreadPool.hpp"
#include "Rtsp/Rtsp.h"
#include "Rtmp/utils.h"
#include "Util/util.h"
#include "Util/onceToken.h"
#include "
Rtmp/utils
.h"
#include "Rtsp/Rtsp.h"
#include "
Thread/ThreadPool
.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/Rtmp/RtmpPlayer.h
查看文件 @
0eb82e46
...
...
@@ -9,18 +9,18 @@
#define SRC_RTMP_RtmpPlayer2_H_
#include <netinet/in.h>
#include
"Player/PlayerBase.h"
#include
<memory>
#include <string>
#include "Util/logger.h"
#include "Util/util.h"
#include "Network/Socket.hpp"
#include "Network/TcpClient.h"
#include "Util/TimeTicker.h"
#include <functional>
#include "Rtmp.h"
#include <memory>
#include "amf.h"
#include "Rtmp.h"
#include "RtmpProtocol.h"
#include "Player/PlayerBase.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "Util/TimeTicker.h"
#include "Network/Socket.h"
#include "Network/TcpClient.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpPlayerImp.h
查看文件 @
0eb82e46
...
...
@@ -8,13 +8,13 @@
#ifndef SRC_RTMP_RTMPPLAYERIMP_H_
#define SRC_RTMP_RTMPPLAYERIMP_H_
#include <functional>
#include <memory>
#include <functional>
#include "config.h"
#include "RtmpPlayer.h"
#include "RtmpParser.h"
#include "
config
.h"
#include "
Poller/Timer
.h"
#include "Util/TimeTicker.h"
#include "Poller/Timer.hpp"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpProtocol.cpp
查看文件 @
0eb82e46
...
...
@@ -6,11 +6,12 @@
*/
#include "RtmpProtocol.h"
#include "Thread/ThreadPool.hpp"
#include "Rtsp/Rtsp.h"
#include "Rtmp/utils.h"
#include "Util/util.h"
#include "Util/onceToken.h"
#include "
Rtmp/utils
.h"
#include "Rtsp/Rtsp.h"
#include "
Thread/ThreadPool
.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
...
...
src/Rtmp/RtmpProtocol.h
查看文件 @
0eb82e46
...
...
@@ -9,15 +9,15 @@
#define SRC_RTMP_RTMPPROTOCOL_H_
#include <netinet/in.h>
#include <memory>
#include <string>
#include "Util/logger.h"
#include "Util/util.h"
#include "Network/Socket.hpp"
#include "Util/TimeTicker.h"
#include <functional>
#include "Rtmp.h"
#include <memory>
#include "amf.h"
#include "Rtmp.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "Util/TimeTicker.h"
#include "Network/Socket.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpPusher.cpp
查看文件 @
0eb82e46
...
...
@@ -6,11 +6,11 @@
*/
#include "RtmpPusher.h"
#include "Thread/ThreadPool.hpp"
#include "Util/util.h"
#include "Util/onceToken.h"
#include "Rtmp/utils.h"
#include "Rtsp/Rtsp.h"
#include "Util/util.h"
#include "Util/onceToken.h"
#include "Thread/ThreadPool.h"
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpPusher.h
查看文件 @
0eb82e46
...
...
@@ -9,8 +9,8 @@
#define SRC_RTMP_RTMPPUSHER_H_
#include "RtmpProtocol.h"
#include "Network/TcpClient.h"
#include "RtmpMediaSource.h"
#include "Network/TcpClient.h"
namespace
ZL
{
namespace
Rtmp
{
...
...
src/Rtmp/RtmpSession.h
查看文件 @
0eb82e46
...
...
@@ -10,15 +10,14 @@
#include <netinet/in.h>
#include <unordered_map>
#include "amf.h"
#include "Rtmp.h"
#include "utils.h"
#include "config.h"
#include "Util/util.h"
#include "Util/TimeTicker.h"
#include "RtmpProtocol.h"
#include "RtmpToRtspMediaSource.h"
#include "Util/util.h"
#include "Util/TimeTicker.h"
#include "Network/TcpLimitedSession.h"
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/RtmpToRtspMediaSource.cpp
查看文件 @
0eb82e46
...
...
@@ -5,12 +5,12 @@
* Author: xzl
*/
#include "
Network/sockutil
.h"
#include "
config
.h"
#include "RtmpToRtspMediaSource.h"
#include "Util/util.h"
#include "Device/base64.h"
#include "Network/sockutil.h"
#include "config.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Network
;
...
...
src/Rtmp/RtmpToRtspMediaSource.h
查看文件 @
0eb82e46
...
...
@@ -7,23 +7,23 @@
#ifndef SRC_RTMP_RTMPTORTSPMEDIASOURCE_H_
#define SRC_RTMP_RTMPTORTSPMEDIASOURCE_H_
#include <mutex>
#include <string>
#include <functional>
#include <memory>
#include <functional>
#include <unordered_map>
#include <mutex>
#include "Util/logger.h"
#include "amf.h"
#include "Rtmp.h"
#include "Util/util.h"
#include <mutex>
#include "RtmpParser.h"
#include "RtmpMediaSource.h"
#include "Rtsp/RtspMediaSource.h"
#include "RTP/RtpMakerH264.h"
#include "RTP/RtpMakerAAC.h"
#include "MedaiFile/MediaRecorder.h"
#include "Rtsp/RtpParser.h"
#include "RtmpParser.h"
#include "Rtsp/RtspMediaSource.h"
#include "MedaiFile/MediaRecorder.h"
#include "Util/util.h"
#include "Util/logger.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtmp/amf.cpp
查看文件 @
0eb82e46
#include "amf.h"
#include "utils.h"
#include <stdexcept>
#include <string.h>
#include <stdexcept>
#include <arpa/inet.h>
#include "amf.h"
#include "utils.h"
#include "Util/logger.h"
#include "Util/util.h"
using
namespace
ZL
::
Util
;
/////////////////////AMFValue/////////////////////////////
...
...
src/Rtmp/amf.h
查看文件 @
0eb82e46
#ifndef __amf_h
#define __amf_h
#include <string>
#include <unordered_map>
#include <assert.h>
#include <string>
#include <vector>
#include <unordered_map>
enum
AMFType
{
AMF_NUMBER
,
AMF_INTEGER
,
...
...
src/Rtsp/RtpBroadCaster.cpp
查看文件 @
0eb82e46
...
...
@@ -5,11 +5,11 @@
* Author: xzl
*/
#include "Network/sockutil.h"
#include "RtpBroadCaster.h"
#include "Util/util.h"
#include <arpa/inet.h>
#include <list>
#include "RtpBroadCaster.h"
#include "Util/util.h"
#include "Network/sockutil.h"
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/RtpBroadCaster.h
查看文件 @
0eb82e46
...
...
@@ -7,16 +7,17 @@
#ifndef SRC_RTSP_RTPBROADCASTER_H_
#define SRC_RTSP_RTPBROADCASTER_H_
#include <netinet/in.h>
#include <arpa/inet.h>
#include <
memory
>
#include <
netinet/in.h
>
#include <mutex>
#include <unordered_map>
#include "RtspMediaSource.h"
#include "Network/Socket.hpp"
#include <memory>
#include <unordered_set>
#include
"Util/mini.hpp"
#include
<unordered_map>
#include "config.h"
#include "RtspMediaSource.h"
#include "Util/mini.h"
#include "Network/Socket.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/RtpParser.cpp
查看文件 @
0eb82e46
...
...
@@ -5,12 +5,14 @@
* Author: xzl
*/
#include <cctype>
#include <algorithm>
#include "RtpParser.h"
#include "Device/base64.h"
#include "H264/SPSParser.h"
#include <algorithm>
#include <cctype>
using
namespace
std
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/RtpParser.h
查看文件 @
0eb82e46
...
...
@@ -7,11 +7,12 @@
#ifndef SRC_RTP_RTPPARSER_H_
#define SRC_RTP_RTPPARSER_H_
#include "Player/Player.h"
#include "Rtsp/Rtsp.h"
#include <unordered_map>
#include "Util/TimeTicker.h"
#include "Rtsp/Rtsp.h"
#include "Player/Player.h"
#include "Player/PlayerBase.h"
#include "Util/TimeTicker.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/Rtsp.cpp
查看文件 @
0eb82e46
...
...
@@ -5,8 +5,9 @@
* Author: xzl
*/
#include "Rtsp.h"
#include <stdlib.h>
#include "Rtsp.h"
string
FindField
(
const
char
*
buf
,
const
char
*
start
,
const
char
*
end
,
int
bufSize
)
{
if
(
bufSize
<=
0
){
bufSize
=
strlen
(
buf
);
...
...
src/Rtsp/Rtsp.h
查看文件 @
0eb82e46
#ifndef RTSP_RTSP_H_
#define RTSP_RTSP_H_
#include "config.h"
#include <string.h>
#include <string>
#include <unordered_map>
#include <memory>
#include <unordered_map>
#include "config.h"
using
namespace
std
;
typedef
enum
{
...
...
src/Rtsp/RtspMediaSource.cpp
查看文件 @
0eb82e46
...
...
@@ -7,8 +7,8 @@
#include "RtspMediaSource.h"
#include "MedaiFile/MediaReader.h"
using
namespace
ZL
::
MediaFile
;
using
namespace
ZL
::
MediaFile
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/RtspMediaSource.h
查看文件 @
0eb82e46
...
...
@@ -8,20 +8,20 @@
#ifndef SRC_RTSP_RTSPMEDIASOURCE_H_
#define SRC_RTSP_RTSPMEDIASOURCE_H_
#include "config.h"
#include "Util/NoticeCenter.h"
#include "Util/ResourcePool.h"
#include <mutex>
#include <string>
#include <functional>
#include <memory>
#include
"Util/RingBuffer.hpp"
#include
<functional>
#include <unordered_map>
#include <mutex>
#include "config.h"
#include "Rtsp.h"
#include "MediaSender.h"
#include "Util/logger.h"
#include "
Thread/ThreadPool.hpp
"
#include "
Util/RingBuffer.h
"
#include "Util/TimeTicker.h"
#include "MediaSender.h"
#include "Rtsp.h"
#include "Util/ResourcePool.h"
#include "Util/NoticeCenter.h"
#include "Thread/ThreadPool.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/RtspPlayer.cpp
查看文件 @
0eb82e46
...
...
@@ -4,11 +4,11 @@
#include <algorithm>
#include <arpa/inet.h>
#include "RtspPlayer.h"
#include "config.h"
#include "
Util/mini.hpp
"
#include "
RtspPlayer.h
"
#include "Device/base64.h"
#include "H264/SPSParser.h"
#include "Util/mini.h"
#include "Network/sockutil.h"
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/RtspPlayer.h
查看文件 @
0eb82e46
...
...
@@ -7,26 +7,28 @@
#ifndef SRC_RTSPPLAYER_RTSPPLAYER_H_TXT_
#define SRC_RTSPPLAYER_RTSPPLAYER_H_TXT_
#include <netinet/in.h>
#include "Player/PlayerBase.h"
#include "Poller/Timer.hpp"
#include "RtspMediaSource.h"
#include <string>
#include <memory>
#include "Rtsp.h"
#include "RtspSession.h"
#include "Util/logger.h"
#include "RtspMediaSource.h"
#include "Player/PlayerBase.h"
#include "Util/util.h"
#include "Network/Socket.hpp"
#include "Network/TcpClient.h"
#include "Util/logger.h"
#include "Util/TimeTicker.h"
#include "Rtsp.h"
#include <memory>
#include "Poller/Timer.h"
#include "Network/Socket.h"
#include "Network/TcpClient.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Network
;
using
namespace
ZL
::
Rtsp
;
using
namespace
ZL
::
Poller
;
using
namespace
ZL
::
Player
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Poller
;
using
namespace
ZL
::
Network
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/RtspPlayerImp.h
查看文件 @
0eb82e46
...
...
@@ -8,14 +8,14 @@
#ifndef SRC_RTP_RTPPARSERTESTER_H_
#define SRC_RTP_RTPPARSERTESTER_H_
#include <functional>
#include <algorithm>
#include <memory>
#include
"RtspPlayer.h"
#include
"RtpParser.h"
#include
<algorithm>
#include
<functional>
#include "config.h"
#include "RtpParser.h"
#include "RtspPlayer.h"
#include "Poller/Timer.h"
#include "Util/TimeTicker.h"
#include "Poller/Timer.hpp"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/RtspSession.cpp
查看文件 @
0eb82e46
...
...
@@ -5,18 +5,17 @@
* Author: xzl
*/
#include <arpa/inet.h>
#include "config.h"
#include <netinet/in.h>
#include "Network/sockutil.h"
#include <atomic>
#include "config.h"
#include "UDPServer.h"
#include "RtspSession.h"
#include "Util/onceToken.h"
#include "Device/base64.h"
#include "U
DPServer
.h"
#include
<atomic>
#include "U
til/mini
.h"
#include
"Util/onceToken.h"
#include "Util/TimeTicker.h"
#include "Util/NoticeCenter.h"
#include "config.h"
#include "Util/mini.hpp"
#include "Network/sockutil.h"
using
namespace
Config
;
using
namespace
ZL
::
Util
;
...
...
src/Rtsp/RtspSession.h
查看文件 @
0eb82e46
...
...
@@ -9,17 +9,16 @@
#define SESSION_RTSPSESSION_H_
#include <netinet/in.h>
#include <vector>
#include <set>
#include <vector>
#include <unordered_map>
#include "config.h"
#include "Rtsp.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "RtpBroadCaster.h"
#include "RtspMediaSource.h"
#include "Player/PlayerBase.h"
#include "Util/util.h"
#include "Util/logger.h"
#include "Network/TcpLimitedSession.h"
using
namespace
std
;
...
...
src/Rtsp/RtspToRtmpMediaSource.cpp
查看文件 @
0eb82e46
...
...
@@ -5,21 +5,22 @@
* Author: xzl
*/
#include "RtspToRtmpMediaSource.h"
#include "Rtmp/Rtmp.h"
#include "Util/util.h"
#include <unistd.h>
#include <string.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include "Network/sockutil.h"
#include "config.h"
#include "Rtmp/Rtmp.h"
#include "RtspToRtmpMediaSource.h"
#include "Util/util.h"
#include "Network/sockutil.h"
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Network
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/RtspToRtmpMediaSource.h
查看文件 @
0eb82e46
...
...
@@ -8,11 +8,11 @@
#ifndef SRC_RTSP_RTSPTORTMPMEDIASOURCE_H_
#define SRC_RTSP_RTSPTORTMPMEDIASOURCE_H_
#include "MedaiFile/MediaRecorder.h"
#include "RtspMediaSource.h"
#include "RtpParser.h"
#include "Rt
mp/Rtm
pMediaSource.h"
#include "Rt
s
pMediaSource.h"
#include "Rtmp/amf.h"
#include "Rtmp/RtmpMediaSource.h"
#include "MedaiFile/MediaRecorder.h"
using
namespace
ZL
::
Rtmp
;
using
namespace
ZL
::
MediaFile
;
...
...
src/Rtsp/UDPServer.cpp
查看文件 @
0eb82e46
...
...
@@ -8,7 +8,9 @@
#include <arpa/inet.h>
#include "UDPServer.h"
#include "Util/TimeTicker.h"
using
namespace
ZL
::
Util
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Rtsp/UDPServer.h
查看文件 @
0eb82e46
...
...
@@ -7,16 +7,19 @@
#ifndef RTSP_UDPSERVER_H_
#define RTSP_UDPSERVER_H_
#include <stdint.h>
#include "Network/Socket.hpp"
#include "unordered_map"
#include <mutex>
#include "Util/logger.h"
#include <stdint.h>
#include <unordered_map>
#include <unordered_set>
#include "Util/util.h"
#include "unordered_set"
#include "Util/logger.h"
#include "Network/Socket.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
using
namespace
ZL
::
Network
;
namespace
ZL
{
namespace
Rtsp
{
...
...
src/Shell/CMD.h
查看文件 @
0eb82e46
...
...
@@ -7,14 +7,16 @@
#ifndef SRC_SHELL_CMD_H_
#define SRC_SHELL_CMD_H_
#include <string>
#include <getopt.h>
#include <functional>
#include <unordered_map>
#include <string>
#include <vector>
#include <iostream>
#include <functional>
#include <unordered_map>
#include "Util/util.h"
#include "Util/logger.h"
using
namespace
std
;
using
namespace
ZL
::
Util
;
...
...
src/Shell/ShellSession.cpp
查看文件 @
0eb82e46
...
...
@@ -5,12 +5,12 @@
* Author: xzl
*/
#include "config.h"
#include "ShellSession.h"
#include "Util/logger.h"
#include "Util/util.h"
#include "Util/onceToken.h"
#include "Util/mini.hpp"
#include "config.h"
#include "Util/mini.h"
using
namespace
ZL
::
Util
;
...
...
src/config.h
查看文件 @
0eb82e46
...
...
@@ -9,11 +9,10 @@
#ifndef appConfig_h
#define appConfig_h
#include "Util/mini.h
pp
"
#include "Util/mini.h"
using
namespace
ZL
::
Util
;
namespace
Config
{
////////////TCP最大连接数///////////
#ifdef __x86_64__
#define MAX_TCP_SESSION 512
...
...
test/DeviceHK.cpp
查看文件 @
0eb82e46
...
...
@@ -6,8 +6,8 @@
*/
#ifdef ENABLE_HKDEVICE
#include "DeviceHK.h"
#include "Util/TimeTicker.h"
#include "Util/MD5.h"
#include "Util/TimeTicker.h"
namespace
ZL
{
namespace
DEV
{
...
...
test/DeviceHK.h
查看文件 @
0eb82e46
...
...
@@ -9,8 +9,8 @@
#define DEVICE_DEVICEHK_H_
#include <sys/time.h>
#include "HCNetSDK.h"
#include "PlayM4.h"
#include "HCNetSDK.h"
#include "Device/Device.h"
#include "Util/onceToken.h"
#include "Util/logger.h"
...
...
test/test.cpp
查看文件 @
0eb82e46
...
...
@@ -8,20 +8,20 @@
#include <signal.h>
#include <unistd.h>
#include <iostream>
#include "Util/SqlPool.h"
#include "Util/logger.h"
#include "Util/onceToken.h"
#include "Rtsp/UDPServer.h"
#include "Rtsp/RtspSession.h"
#include "Rtmp/RtmpSession.h"
#include "Network/TcpServer.h"
#include "Poller/EventPoller.hpp"
#include "Thread/WorkThreadPool.h"
#include "Http/HttpSession.h"
#include "Http/HttpsSession.h"
#include "Util/SSLBox.h"
#include "Util/SqlPool.h"
#include "Util/logger.h"
#include "Util/onceToken.h"
#include "Network/TcpServer.h"
#include "Poller/EventPoller.h"
#include "Thread/WorkThreadPool.h"
#ifdef ENABLE_HKDEVICE
#include "
test/
DeviceHK.h"
#include "DeviceHK.h"
#endif //ENABLE_HKDEVICE
using
namespace
std
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论