文件名称:p2p_vod

介绍说明--下载内容均来自于网络,请自行研究使用

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,

(系统自动生成,下载前可以参看下载内容)

下载文件列表

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org