C# Class PeerCastStation.PCP.PCPSourceConnection

Inheritance: PeerCastStation.Core.SourceConnectionBase
显示文件 Open project: kumaryu/peercaststation Class Usage Examples

Public Methods

Method Description
GetConnectionInfo ( ) : ConnectionInfo
PCPSourceConnection ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri, RemoteHostStatus remote_type ) : System

Protected Methods

Method Description
DoConnect ( IPEndPoint endpoint ) : Task
DoConnect ( Uri source, CancellationToken cancel_token ) : Task
DoPost ( Host from, Atom packet ) : void
DoProcess ( CancellationToken cancel_token ) : System.Threading.Task
OnPCPBcst ( Atom atom ) : void
OnPCPChan ( Atom atom ) : void
OnPCPChanInfo ( Atom atom ) : void
OnPCPChanPkt ( Atom atom ) : void
OnPCPChanTrack ( Atom atom ) : void
OnPCPOk ( Atom atom ) : void
OnPCPOleh ( Atom atom ) : void
OnPCPQuit ( Atom atom ) : void
OnStarted ( ) : void
OnStopped ( ) : void
ProcessAtom ( Atom atom ) : bool

Private Methods

Method Description
BroadcastHostInfo ( ) : void
Channel_HostInfoUpdated ( object sender, EventArgs e ) : void
CheckHostInfoUpdate ( ) : bool
CreatePCPBCST ( BroadcastGroup group, Atom packet ) : Atom

指定したパケットを含むブロードキャストパケットを作成します

CreatePCPHOST ( ) : Atom

現在のチャンネルとPeerCastの状態からHostパケットを作ります

CreatePCPHelo ( ) : Atom
OnPCPHost ( Atom atom ) : void
ProcessBody ( CancellationToken cancel_token ) : System.Threading.Task
ProcessHandshake ( CancellationToken cancel_token ) : System.Threading.Task
ProcessHosts ( CancellationToken cancel_token ) : System.Threading.Task
ProcessRelayRequest ( CancellationToken cancel_token ) : System.Threading.Task
ReadRequestResponseAsync ( Stream stream, CancellationToken cancel_token ) : Task
ResetContentType ( ChannelInfo channel_info, Content content_header ) : ChannelInfo

Method Details

DoConnect() protected method

protected DoConnect ( IPEndPoint endpoint ) : Task
endpoint System.Net.IPEndPoint
return Task

DoConnect() protected method

protected DoConnect ( Uri source, CancellationToken cancel_token ) : Task
source System.Uri
cancel_token System.Threading.CancellationToken
return Task

DoPost() protected method

protected DoPost ( Host from, Atom packet ) : void
from PeerCastStation.Core.Host
packet Atom
return void

DoProcess() protected method

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

GetConnectionInfo() public method

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

OnPCPBcst() protected method

protected OnPCPBcst ( Atom atom ) : void
atom Atom
return void

OnPCPChan() protected method

protected OnPCPChan ( Atom atom ) : void
atom Atom
return void

OnPCPChanInfo() protected method

protected OnPCPChanInfo ( Atom atom ) : void
atom Atom
return void

OnPCPChanPkt() protected method

protected OnPCPChanPkt ( Atom atom ) : void
atom Atom
return void

OnPCPChanTrack() protected method

protected OnPCPChanTrack ( Atom atom ) : void
atom Atom
return void

OnPCPOk() protected method

protected OnPCPOk ( Atom atom ) : void
atom Atom
return void

OnPCPOleh() protected method

protected OnPCPOleh ( Atom atom ) : void
atom Atom
return void

OnPCPQuit() protected method

protected OnPCPQuit ( Atom atom ) : void
atom Atom
return void

OnStarted() protected method

protected OnStarted ( ) : void
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

PCPSourceConnection() public method

public PCPSourceConnection ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri, RemoteHostStatus remote_type ) : System
peercast PeerCastStation.Core.PeerCast
channel Channel
source_uri System.Uri
remote_type RemoteHostStatus
return System

ProcessAtom() protected method

protected ProcessAtom ( Atom atom ) : bool
atom Atom
return bool