C# Класс PeerCastStation.PCP.PCPOutputStream

Наследование: PeerCastStation.Core.OutputStreamBase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
MaxBodyLength int

Открытые методы

Метод Описание
GetConnectionInfo ( ) : ConnectionInfo
IsPingTarget ( IPAddress address ) : bool
PCPOutputStream ( PeerCastStation.Core.PeerCast peercast, Stream input_stream, Stream output_stream, EndPoint remote_endpoint, AccessControlInfo access_control, Channel channel, RelayRequest request ) : System

Защищенные методы

Метод Описание
CreateContentBodyPacket ( Channel channel, Content content ) : IEnumerable
CreateContentHeaderPacket ( Channel channel, Content content ) : IEnumerable
CreateRelayResponse ( ) : string
DoPost ( Host from, Atom packet, CancellationToken cancel_token ) : Task
DoProcess ( CancellationToken cancel_token ) : Task
GetUpstreamRate ( ) : int
OnStarted ( CancellationToken cancel_token ) : Task
OnStopped ( CancellationToken cancel_token ) : Task
SendRelayResponse ( CancellationToken cancel_token ) : Task

Приватные методы

Метод Описание
Channel_ChannelPropertyChanged ( object sender, EventArgs e ) : void
Channel_ContentChanged ( object sender, EventArgs args ) : void
CreateBroadcastPacket ( BroadcastGroup group, Atom packet ) : Atom
CreateChanPacket ( ) : Atom
CreateContentBodyPacket ( Channel channel, long pos, IEnumerable data ) : Atom
OnPCPBcst ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPChan ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPChanInfo ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPChanPkt ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPChanTrack ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPHelo ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPHost ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPOk ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPOleh ( Atom atom, CancellationToken cancel_token ) : Task
OnPCPQuit ( Atom atom, CancellationToken cancel_token ) : Task
PingHost ( IPEndPoint target, System.Guid remote_session_id, CancellationToken cancel_token ) : Task
ProcessAtom ( Atom atom, CancellationToken cancel_token ) : Task
ReadAndProcessAtom ( CancellationToken cancel_token ) : Task
SelectSourceHosts ( IPEndPoint endpoint ) : IEnumerable
SendRelayBody ( CancellationToken cancel_token ) : Task

Описание методов

CreateContentBodyPacket() защищенный Метод

protected CreateContentBodyPacket ( Channel channel, Content content ) : IEnumerable
channel Channel
content Content
Результат IEnumerable

CreateContentHeaderPacket() защищенный Метод

protected CreateContentHeaderPacket ( Channel channel, Content content ) : IEnumerable
channel Channel
content Content
Результат IEnumerable

CreateRelayResponse() защищенный Метод

protected CreateRelayResponse ( ) : string
Результат string

DoPost() защищенный Метод

protected DoPost ( Host from, Atom packet, CancellationToken cancel_token ) : Task
from PeerCastStation.Core.Host
packet Atom
cancel_token System.Threading.CancellationToken
Результат Task

DoProcess() защищенный Метод

protected DoProcess ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
Результат Task

GetConnectionInfo() публичный Метод

public GetConnectionInfo ( ) : ConnectionInfo
Результат PeerCastStation.Core.ConnectionInfo

GetUpstreamRate() защищенный Метод

protected GetUpstreamRate ( ) : int
Результат int

IsPingTarget() публичный Метод

public IsPingTarget ( IPAddress address ) : bool
address System.Net.IPAddress
Результат bool

OnStarted() защищенный Метод

protected OnStarted ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
Результат Task

OnStopped() защищенный Метод

protected OnStopped ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
Результат Task

PCPOutputStream() публичный Метод

public PCPOutputStream ( PeerCastStation.Core.PeerCast peercast, Stream input_stream, Stream output_stream, EndPoint remote_endpoint, AccessControlInfo access_control, Channel channel, RelayRequest request ) : System
peercast PeerCastStation.Core.PeerCast
input_stream Stream
output_stream Stream
remote_endpoint System.Net.EndPoint
access_control PeerCastStation.Core.AccessControlInfo
channel Channel
request RelayRequest
Результат System

SendRelayResponse() защищенный Метод

protected SendRelayResponse ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
Результат Task

Описание свойств

MaxBodyLength публичное статическое свойство

public static int MaxBodyLength
Результат int