C# Class PeerCastStation.PCP.PCPOutputStream

Inheritance: PeerCastStation.Core.OutputStreamBase
Mostrar archivo Open project: kumaryu/peercaststation

Public Properties

Property Type Description
MaxBodyLength int

Public Methods

Method Description
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

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CreateContentBodyPacket() protected method

protected CreateContentBodyPacket ( Channel channel, Content content ) : IEnumerable
channel Channel
content Content
return IEnumerable

CreateContentHeaderPacket() protected method

protected CreateContentHeaderPacket ( Channel channel, Content content ) : IEnumerable
channel Channel
content Content
return IEnumerable

CreateRelayResponse() protected method

protected CreateRelayResponse ( ) : string
return string

DoPost() protected method

protected DoPost ( Host from, Atom packet, CancellationToken cancel_token ) : Task
from PeerCastStation.Core.Host
packet Atom
cancel_token System.Threading.CancellationToken
return Task

DoProcess() protected method

protected DoProcess ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

GetConnectionInfo() public method

public GetConnectionInfo ( ) : ConnectionInfo
return PeerCastStation.Core.ConnectionInfo

GetUpstreamRate() protected method

protected GetUpstreamRate ( ) : int
return int

IsPingTarget() public method

public IsPingTarget ( IPAddress address ) : bool
address System.Net.IPAddress
return bool

OnStarted() protected method

protected OnStarted ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

OnStopped() protected method

protected OnStopped ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

PCPOutputStream() public method

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
return System

SendRelayResponse() protected method

protected SendRelayResponse ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
return Task

Property Details

MaxBodyLength public_oe static_oe property

public static int MaxBodyLength
return int