C# Class PeerCastStation.PCP.PCPSourceStream

Inheritance: PeerCastStation.Core.SourceStreamBase
Exibir arquivo Open project: kumaryu/peercaststation Class Usage Examples

Public Methods

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

Protected Methods

Method Description
CreateConnection ( Uri source_uri ) : ISourceConnection
DoReconnect ( ) : void
OnConnectionStopped ( ISourceConnection connection, StopReason reason ) : void

Private Methods

Method Description
ClearIgnored ( ) : void

全てのノードを接続先として選択可能にします

CreateHostUri ( Host host ) : Uri
GetConnectableNodes ( ) : IEnumerable
IgnoreNode ( Uri uri ) : void

指定したノードが接続先として選択されないように保持します。 一度無視されたノードは一定時間経過した後、再度選択されるようになります

IsIgnored ( Uri uri ) : bool
IsSiteLocal ( Host node ) : bool
Reconnect ( Uri new_source ) : void
SelectSourceHost ( ) : Uri

Method Details

CreateConnection() protected method

protected CreateConnection ( Uri source_uri ) : ISourceConnection
source_uri System.Uri
return ISourceConnection

DoReconnect() protected method

protected DoReconnect ( ) : void
return void

GetConnectionInfo() public method

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

OnConnectionStopped() protected method

protected OnConnectionStopped ( ISourceConnection connection, StopReason reason ) : void
connection ISourceConnection
reason StopReason
return void

PCPSourceStream() public method

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