crtmpserver的架构简介
crtmpserver的架构简介
一、层 Layers
. 机器层 Machine layer
. 操作系统层 Operating System Layer
This layer is composed of libraries with functions that make the entire Evostream ecosystem
compatible to any Operating System. OS-specific functions used in the whole solution are made
transparent to current Operating System, avoiding any unexpected errors in compiling and
running the system. With this layer, Evostream can compile and run on Linux, Windows, Mac,
Solaris, and other Operating Systems.
这一层是由库函数组成,使整个Evostream生态系统兼容任何操作系统。
对于当前的操作系统来说,用于整个解决方案中的特定的操作系统函数是透明的,
这样就能避免在编译和运行的意外错误。
有了这一层,Evostream可以编译和运行在Linux, Windows, Mac, Solaris 和其它OS上。
. 网络层 Networking layer
This layer takes care of transporting the data in and out of the server.
This layer has the Input/Output Handlers that handles the transfer of data.
The network layer implements either of the 3 socket reactors depending on the Operating System:
这一层负责服务器的数据输入和输出;
它有输入/输出句柄,用来处理数据的传输;
依据操作系统的不同,网络层有三种不同的socket交互方式
kqueue - BSD based OS
epoll - Linux based OS
select - win32 based OS
. 组件层 The components layer
二、组件 Components
1. 公用程序 Utilities
. 缓存 Buffering
. 日志 Logging
. Lua
. 内存池 Mempool
. Misc
. Tinyxml
2. 输出模块 Netio
. kqueue
. epoll
. select
3. 协议 Protocols
These are communication protocols that are interconnected with each other to form a specific
way of handling the transfer of data in and out of the server. There are Transport protocols
and Endpoint protocols. Transport protocols are those that are used to transfer data further,
and all protocol stack must end with an Endpoint protocol. Example is RTMPS with this order
of protocols in the stack: [outside_world] ←→ SSL ←→ HTTP ←→ RTMP, where SSL and HTTP
are Transport protocols and RTMP is the Endpoint protocol. There should never be another protocol
on top of the Endpoint protocol.
通信协议用来和服务器外部以特定的方式处理数据的传输;
这些协议分成传输协议和终端协议;
传输协议用来传输数据,而且,所有的协议栈必须以终端协议结束。
例如: RTMPS的协议栈的顺序为:
[outside_world] ←→ SSL ←→ HTTP ←→ RTMP.
其中,
SSL和HTTP是传输协议;
RTMP是终端协议;
且在终端协议之上不能再有任何其它协议;
Within a protocol stack are Near and Far protocols, each indicating its distance from the server.
Near means a protocol that is on the right of a protocol in a stack (means the one closer to the
server), whereas Far means the one on the left.
In the example protocol stack RTMPS - [outside_world] ←→ SSL ←→ HTTP ←→ RTMP ,
SSL is the Far protocol of HTTP, and RTMP is its Near protocol of HTTP.
The protocol that is nearest to the server is the Near-endpoint (RTMP in this case),
and the one closest to the outside world is the Far-enpoint (SSL in this case).
协议栈中的协议的远近,指示了它到服务器的距离;
近,意味着在协议在栈的右边(意即靠近服务器), 远,则在左边;
在RTMPS协议栈的例子中:
[outside_world] ←→ SSL ←→ HTTP ←→ RTMP
SSL比HTTP远,RTMP比HTTP近,
和服务器端最近的是RTMP协议,和外部世界最近的是SSL;
. Base Protocol
The BaseProtocol class is the base class on which all protocols derive from.
BaseProtocol类是基类,所有协议都是源自于它;
. Base Protocol Factory
The BaseProtocolFactory class in the base class on which all protocol factory derive from.
BaseProtocolFactory类是基类,所有的协议库都源自于它;
. Protocol Factory
Evostream has a “bank” of protocols and protocol stacks that are all available applications to use.
A BaseProtocolFactory class is used as a base class of all protocol factories.
Atomic protocols are declared and protocol chains are spawned in the factory.
Resources from the factory will then be exported for use by the applications.
Evostream有一个协议库,所有有效应用的协议栈都可以使用它;
BaseProtocolFactory类作为所有协议库的基类;
原子协议和协议链都在这个库中声明和产生;
库中的资源都将输出给应用使用;
. 协议管理 Protocol Manager
4. 应用和协议句柄 Applications and protocol handlers
5. 流 Streaming
6. 媒体格式 Media formats
. flv
. mkv
. mp3
. mp4
crtmpserver的架构简介的更多相关文章
- LoadRunner系统架构简介
1.LoadRunner系统架构简介 LoadRunner是通过创建虚拟用户来代替真实实际用户来操作客户端软件比如Internet Explorer,来向IIS.Apache等Web服务器发送HTTP ...
- Extjs6官方文档译文——应用架构简介(MVC,MVVM)
应用架构简介 Extjs 同时提供对于MVC和MVVM应用架构的支持.这两个架构方式共享某些概念,而且都旨在沿着逻辑层面划分应用程序代码.每种方法在选择如何划分应用组件上都有其各自的优势. 本指南的目 ...
- Kafka:架构简介【转】
转:http://www.cnblogs.com/f1194361820/p/6026313.html Kafka 架构简介 Kafka是一个开源的.分布式的.可分区的.可复制的基于日志提交的发布订阅 ...
- LoadRunner系统架构简介与运行原理
1.LoadRunner系统架构简介 LoadRunner是通过创建虚拟用户来代替真实实际用户来操作客户端软件比如Internet Explorer,来向IIS.Apache等Web服务器发送HTTP ...
- Cortex-M0(+)内核的处理器架构简介
Cortex-M0(+)内核的处理器架构简介 2015年03月02日 16:51:12 阅读数:3158 系统架构 Cortex-M0处理器具有32位系统总线接口,以及32位地址线,即有4GB的地址空 ...
- 【转帖】LoadRunner系统架构简介
LoadRunner系统架构简介: LoadRunner是通过创建虚拟用户来代替真实实际用户来操作客户端软件比如Internet Explorer,来向IIS.Apache等Web服务器发送HTTP协 ...
- TP 5.0 架构 简介
TP 5.0 架构 简介 thinkphp 5.0 为API开发而设计的的高性能框架,是与以往thinkphp5.0以下版本大不相同的新型框架,病对以颠覆和重构版本,采用全新的架构思想,引入了更多的P ...
- ceph架构简介
ceph架构简介 在测试OpenStack的后端存储时,看到了ceph作为后端存储时的各种优势 ,于是查询资料,总结了这篇ceph架构的博客,介绍了ceph的架构和ceph的核心组件.ceph整体十分 ...
- Kafka 探险 - 架构简介
Kafka 探险 - 架构简介 这个 Kafka 的专题,我会从系统整体架构,设计到代码落地.和大家一起杠源码,学技巧,涨知识.希望大家持续关注一起见证成长! 我相信:技术的道路,十年如一日!十年磨一 ...
随机推荐
- 双向队列 STL
题目描述 想想双向链表……双向队列的定义差不多,也就是说一个队列的队尾同时也是队首:两头都可以做出队,入队的操作.现在给你一系列的操作,请输出最后队列的状态:命令格式:LIN X X表示一个整数,命 ...
- MFC对话框应用程序添加自定义消息
1. 定义自定义消息 /** * \brief 消息测试 */ #define E6100_MSG_TEST ( WM_USER + 1001 ) 2. 声明自定义消息处理函数 /* ...
- sql优化(oracle)
系统优化中很重要的方面是SQL语句的优化,对于海量数据,优质的SQL能够有效的提高系统的可用性. 总结的有点罗嗦,列个简单的目录啦~ 目录 第一部分知识准备 ...
- ACM中Java的应用
先说一下Java对于ACM的一些优点吧: (1) 对于熟悉C/C++的程序员来说Java 并不难学,两周时间基本可以搞定一般的编程,再用些时间了解一下Java库就行了.Java的语法和C++非常类似, ...
- iOS音频处理
ios音频处理 1. iOS底层音频处理技术(带源代码) http://www.cocoachina.com/ios/20111122/3563.html 2.ios 音频入门 http://blog ...
- 无需转化直接使用ESD映像文件安装系统简明教程
原版系统ISO镜像的sources文件夹中包含install.wim映像文件,将这个WIM文件“解压”(官方术语“Apply”)后,可以看到和C盘的目录完全相同,即为系统文件. 而官方提供的原版ESD ...
- 总结工作中常用到的linux命令大全_经典
常用解压命令 tar.bz2 命令: tar -jxvf *.tar.bz2 tar.z 命令: tar -zxvf *.tar.z tar.gz 命令: tar -Zxvf *.tar ...
- Java学习路线图·影响一代又一代程序员的经典书籍!(转)
转自:http://www.douban.com/group/topic/50353428/ 基础篇 ·Java核心技术 卷1 基础知识(原书第9版)最新版·中文版 第13届Jolt生产效率大奖获奖图 ...
- windows shell备忘
1.查找占用80端口的进程idnetstat -aon|findstr "80" 2.查找进程id为"1000"的进程名tasklist|findstr &qu ...
- 淘宝数据库OceanBase SQL编译器部分 源代码阅读--Schema模式
淘宝数据库OceanBase SQL编译器部分 源代码阅读--Schema模式 什么是Database,什么是Schema,什么是Table,什么是列,什么是行,什么是User?我们能够能够把Data ...