文件名称:p2p_vod
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3.27mb
- 下载次数:
- 0次
- 提 供 者:
- 风**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 架构说明
目前的协议有如下一些特点:
1) 客户向服务器发送请求, 每个请求的长度不定. 请求的长度在第一个INT中指定.
2) 每个服务器通常会向多种客户提供服务, 例如, TS要同时向CP, NP提供服务,
CP要向NP和其他CP提供服务, 同时还是其他CP, TS, SP的客户.
3) 每个服务器为客户服务时, 通常是长期的, 会涉及多次请求-应答的来回.
这样的结构, 主要是为了能够支持大量并发客户连接而设计的. 在具有大量并发客户
连接时, 无论采用线程还是进程, 都无法进行有效的服务, 因此必须采用select
轮询方式.
2. 基本数据结构说明
对于每个客户端, 需要保存该客户端相应的一些信息. 目前的CPnew.c, SPnew.c
和TSnew.c的核心数据结构基本相同, 都由Session,
SessionCluster (TSnew.c中) 或者 ServerDesc (CPnew.c和SPnew.c)构成.
其中, Session是每个客户端相关的数据, SessionCluster(或者是ServerDesc)是
有关每种服务的信息, 其中有一个指向该服务相关的各个Session的指针. Session
这一数据结构不是在有客户请求时动态分配的, 而是在最开始初始化时就已经分配
好的, 当有新客户请求到来时, 服务器搜索这一预先分配好的这些Session, 发现其中
有空闲则使用, 如果没有空闲就报告错误.-1. Architecture Descr iption
The current agreement has the following features:
1) The client sends a request to the server, each request the length of the variable. The length of the request specified in the first INT.
2) each server would usually offer a variety of services, such as, TS to the same time to the CP, NP to provide services
CP and CP to the NP to provide services, or other CP, TS, SP customers.
3) customer service for each server, usually long-term, will involve multiple requests- response back and forth.
Such a structure, mainly to be able to support large numbers of concurrent client connections and design. In a large number of concurrent clients
Connection, regardless of the thread or process can not effectively service, so must select
Polling.
2. The basic data structure that
For each client, the corresponding need to save the client some information. The current CPnew.c, SPnew.c
And TSnew.c the core data structure is basically the same, by the Session,
目前的协议有如下一些特点:
1) 客户向服务器发送请求, 每个请求的长度不定. 请求的长度在第一个INT中指定.
2) 每个服务器通常会向多种客户提供服务, 例如, TS要同时向CP, NP提供服务,
CP要向NP和其他CP提供服务, 同时还是其他CP, TS, SP的客户.
3) 每个服务器为客户服务时, 通常是长期的, 会涉及多次请求-应答的来回.
这样的结构, 主要是为了能够支持大量并发客户连接而设计的. 在具有大量并发客户
连接时, 无论采用线程还是进程, 都无法进行有效的服务, 因此必须采用select
轮询方式.
2. 基本数据结构说明
对于每个客户端, 需要保存该客户端相应的一些信息. 目前的CPnew.c, SPnew.c
和TSnew.c的核心数据结构基本相同, 都由Session,
SessionCluster (TSnew.c中) 或者 ServerDesc (CPnew.c和SPnew.c)构成.
其中, Session是每个客户端相关的数据, SessionCluster(或者是ServerDesc)是
有关每种服务的信息, 其中有一个指向该服务相关的各个Session的指针. Session
这一数据结构不是在有客户请求时动态分配的, 而是在最开始初始化时就已经分配
好的, 当有新客户请求到来时, 服务器搜索这一预先分配好的这些Session, 发现其中
有空闲则使用, 如果没有空闲就报告错误.-1. Architecture Descr iption
The current agreement has the following features:
1) The client sends a request to the server, each request the length of the variable. The length of the request specified in the first INT.
2) each server would usually offer a variety of services, such as, TS to the same time to the CP, NP to provide services
CP and CP to the NP to provide services, or other CP, TS, SP customers.
3) customer service for each server, usually long-term, will involve multiple requests- response back and forth.
Such a structure, mainly to be able to support large numbers of concurrent client connections and design. In a large number of concurrent clients
Connection, regardless of the thread or process can not effectively service, so must select
Polling.
2. The basic data structure that
For each client, the corresponding need to save the client some information. The current CPnew.c, SPnew.c
And TSnew.c the core data structure is basically the same, by the Session,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
vod
...\doc
...\...\ChaosFilter代码结构.doc
...\...\Chaosfilter详细设计.doc
...\...\cvs代码提交规范.doc
...\...\Layer1 概要分析.doc
...\...\Mysee Lite入门手册.doc
...\...\myseelite_architecture.png
...\...\MySee_lite的许可证和技术支持.doc
...\...\Openmysee开发方向讨论.rtf
...\...\Source_Cache代码结构.txt
...\...\Tracker代码结构.doc
...\...\客户端分拆方案.ppt
...\...\直播手册
...\...\........\GVCapture直播软件使用手册.doc
...\...\........\windows media services 使用帮助.doc
...\...\........\直播准备.doc
...\...\轮播手册
...\...\........\轮播频道建立说明.doc
...\install
...\.......\Capture
...\.......\.......\Capture.nsi
...\.......\.......\CaptureServer.cfg
...\.......\.......\ConfigFilter.dat
...\.......\.......\FVideoOverlay.ax
...\.......\.......\graphedt.exe
...\.......\.......\license.txt
...\.......\.......\MMSControl.ini
...\.......\.......\openmysee.bmp
...\.......\.......\readme.txt
...\.......\Client
...\.......\......\clip01.zzl
...\.......\......\en_US.ini
...\.......\......\FindProcDLL.dll
...\.......\......\KillProcDLL.dll
...\.......\......\license.txt
...\.......\......\openmysee.bmp
...\.......\......\openmysee_setup.nsi
...\.......\......\readme.txt
...\.......\......\vp7dec.ax
...\.......\......\zh_CN.ini
...\.......\......\zh_TW.ini
...\src
...\...\capture
...\...\.......\captureserver
...\...\.......\.............\BufferMgr.cpp
...\...\.......\.............\BufferMgr.h
...\...\.......\.............\CaptureServer.cfg
...\...\.......\.............\CaptureServer.cpp
...\...\.......\.............\CaptureServer.h
...\...\.......\.............\CaptureServer.rc
...\...\.......\.............\CaptureServer.sln
...\...\.......\.............\CaptureServer.vcproj
...\...\.......\.............\ConfigFile.cpp
...\...\.......\.............\ConfigFile.h
...\...\.......\.............\CriticalSection.h
...\...\.......\.............\DebugTrace.cpp
...\...\.......\.............\DebugTrace.h
...\...\.......\.............\Error.h
...\...\.......\.............\FreeList.h
...\...\.......\.............\LogMgr.cpp
...\...\.......\.............\LogMgr.h
...\...\.......\.............\md5.cpp
...\...\.......\.............\md5.h
...\...\.......\.............\Protocol.h
...\...\.......\.............\resource.h
...\...\.......\.............\SPClient.cpp
...\...\.......\.............\SPClient.h
...\...\.......\.............\StdAfx.cpp
...\...\.......\.............\StdAfx.h
...\...\.......\.............\Struct.h
...\...\.......\.............\TE_Socket.cpp
...\...\.......\.............\TE_Socket.h
...\...\.......\.............\TransferCalculator.cpp
...\...\.......\.............\TransferCalculator.h
...\...\.......\.............\TVSourceConfig.h
...\...\.......\.............\TVStreamSink.cpp
...\...\.......\.............\TVStreamSink.def
...\...\.......\.............\TVStreamSink.h
...\...\.......\.............\TVStreamSinkApp.cpp
...\...\.......\.............\TVStreamSinkPins.cpp
...\...\.......\.............\TVStreamSinkPins.h
...\...\.......\.............\uuids.h
...\...\.......\.............\ZZLFileWriter.cpp
...\...\.......\.............\ZZLFileWriter.h
...\...\.......\GetZZL
...\...\.......\GetZZLDisplay
...\...\.......\.............\CaptureServer.cfg
...\...\.......\.............\ChangeLog.txt
...\...\.......\.............\CriticalSection.h
...\...\.......\.............\DebugTrace.cpp
...\...\.......\.............\DebugTrace.h
...\...\.......\.............\GetZZL.h
...\...\.......\.............\GetZZLCommander.cpp
...\...\.......\.............\GetZZLCommander.h
...\...\.......\.............\GetZZLDisplay.cpp
...\...\.......\.............\GetZZLDisplay.h
...\...\.......\.............\GetZZLDisplay.rc
...\...\.......\.............\GetZZLDisplay.sln
...\...\.......\.............\GetZZLDisplay.vcproj
...\doc
...\...\ChaosFilter代码结构.doc
...\...\Chaosfilter详细设计.doc
...\...\cvs代码提交规范.doc
...\...\Layer1 概要分析.doc
...\...\Mysee Lite入门手册.doc
...\...\myseelite_architecture.png
...\...\MySee_lite的许可证和技术支持.doc
...\...\Openmysee开发方向讨论.rtf
...\...\Source_Cache代码结构.txt
...\...\Tracker代码结构.doc
...\...\客户端分拆方案.ppt
...\...\直播手册
...\...\........\GVCapture直播软件使用手册.doc
...\...\........\windows media services 使用帮助.doc
...\...\........\直播准备.doc
...\...\轮播手册
...\...\........\轮播频道建立说明.doc
...\install
...\.......\Capture
...\.......\.......\Capture.nsi
...\.......\.......\CaptureServer.cfg
...\.......\.......\ConfigFilter.dat
...\.......\.......\FVideoOverlay.ax
...\.......\.......\graphedt.exe
...\.......\.......\license.txt
...\.......\.......\MMSControl.ini
...\.......\.......\openmysee.bmp
...\.......\.......\readme.txt
...\.......\Client
...\.......\......\clip01.zzl
...\.......\......\en_US.ini
...\.......\......\FindProcDLL.dll
...\.......\......\KillProcDLL.dll
...\.......\......\license.txt
...\.......\......\openmysee.bmp
...\.......\......\openmysee_setup.nsi
...\.......\......\readme.txt
...\.......\......\vp7dec.ax
...\.......\......\zh_CN.ini
...\.......\......\zh_TW.ini
...\src
...\...\capture
...\...\.......\captureserver
...\...\.......\.............\BufferMgr.cpp
...\...\.......\.............\BufferMgr.h
...\...\.......\.............\CaptureServer.cfg
...\...\.......\.............\CaptureServer.cpp
...\...\.......\.............\CaptureServer.h
...\...\.......\.............\CaptureServer.rc
...\...\.......\.............\CaptureServer.sln
...\...\.......\.............\CaptureServer.vcproj
...\...\.......\.............\ConfigFile.cpp
...\...\.......\.............\ConfigFile.h
...\...\.......\.............\CriticalSection.h
...\...\.......\.............\DebugTrace.cpp
...\...\.......\.............\DebugTrace.h
...\...\.......\.............\Error.h
...\...\.......\.............\FreeList.h
...\...\.......\.............\LogMgr.cpp
...\...\.......\.............\LogMgr.h
...\...\.......\.............\md5.cpp
...\...\.......\.............\md5.h
...\...\.......\.............\Protocol.h
...\...\.......\.............\resource.h
...\...\.......\.............\SPClient.cpp
...\...\.......\.............\SPClient.h
...\...\.......\.............\StdAfx.cpp
...\...\.......\.............\StdAfx.h
...\...\.......\.............\Struct.h
...\...\.......\.............\TE_Socket.cpp
...\...\.......\.............\TE_Socket.h
...\...\.......\.............\TransferCalculator.cpp
...\...\.......\.............\TransferCalculator.h
...\...\.......\.............\TVSourceConfig.h
...\...\.......\.............\TVStreamSink.cpp
...\...\.......\.............\TVStreamSink.def
...\...\.......\.............\TVStreamSink.h
...\...\.......\.............\TVStreamSinkApp.cpp
...\...\.......\.............\TVStreamSinkPins.cpp
...\...\.......\.............\TVStreamSinkPins.h
...\...\.......\.............\uuids.h
...\...\.......\.............\ZZLFileWriter.cpp
...\...\.......\.............\ZZLFileWriter.h
...\...\.......\GetZZL
...\...\.......\GetZZLDisplay
...\...\.......\.............\CaptureServer.cfg
...\...\.......\.............\ChangeLog.txt
...\...\.......\.............\CriticalSection.h
...\...\.......\.............\DebugTrace.cpp
...\...\.......\.............\DebugTrace.h
...\...\.......\.............\GetZZL.h
...\...\.......\.............\GetZZLCommander.cpp
...\...\.......\.............\GetZZLCommander.h
...\...\.......\.............\GetZZLDisplay.cpp
...\...\.......\.............\GetZZLDisplay.h
...\...\.......\.............\GetZZLDisplay.rc
...\...\.......\.............\GetZZLDisplay.sln
...\...\.......\.............\GetZZLDisplay.vcproj