C# 클래스 PeerCastStation.Core.OutputStreamBase

상속: System.MarshalByRefObject, IOutputStream
파일 보기 프로젝트 열기: kumaryu/peercaststation 1 사용 예제들

공개 메소드들

메소드 설명
CreateTrackerUri ( System.Guid channel_id, string tip ) : Uri
GetConnectionInfo ( ) : ConnectionInfo
OutputStreamBase ( PeerCastStation.Core.PeerCast peercast, Stream input_stream, Stream output_stream, EndPoint remote_endpoint, AccessControlInfo access_control, Channel channel, byte header ) : System

元になるストリーム、チャンネル、リクエストからHTTPOutputStreamを初期化します

Post ( Host from, Atom packet ) : void
Start ( ) : Task
Stop ( ) : void
Stop ( StopReason reason ) : void

보호된 메소드들

메소드 설명
DoPost ( Host from, Atom packet, CancellationToken cancel_token ) : System.Threading.Task
DoProcess ( CancellationToken cancel_token ) : Task
GetUpstreamRate ( ) : int
OnError ( Exception err ) : System.Threading.Task
OnError ( Exception err, CancellationToken cancel_token ) : System.Threading.Task
OnStarted ( CancellationToken cancel_token ) : System.Threading.Task
OnStopped ( CancellationToken cancel_token ) : System.Threading.Task

비공개 메소드들

메소드 설명
ParseEndPoint ( string text ) : string

메소드 상세

CreateTrackerUri() 공개 정적인 메소드

public static CreateTrackerUri ( System.Guid channel_id, string tip ) : Uri
channel_id System.Guid
tip string
리턴 System.Uri

DoPost() 보호된 메소드

protected DoPost ( Host from, Atom packet, CancellationToken cancel_token ) : System.Threading.Task
from Host
packet Atom
cancel_token System.Threading.CancellationToken
리턴 System.Threading.Task

DoProcess() 보호된 추상적인 메소드

protected abstract DoProcess ( CancellationToken cancel_token ) : Task
cancel_token System.Threading.CancellationToken
리턴 Task

GetConnectionInfo() 공개 추상적인 메소드

public abstract GetConnectionInfo ( ) : ConnectionInfo
리턴 ConnectionInfo

GetUpstreamRate() 보호된 메소드

protected GetUpstreamRate ( ) : int
리턴 int

OnError() 보호된 메소드

protected OnError ( Exception err ) : System.Threading.Task
err System.Exception
리턴 System.Threading.Task

OnError() 보호된 메소드

protected OnError ( Exception err, CancellationToken cancel_token ) : System.Threading.Task
err System.Exception
cancel_token System.Threading.CancellationToken
리턴 System.Threading.Task

OnStarted() 보호된 메소드

protected OnStarted ( CancellationToken cancel_token ) : System.Threading.Task
cancel_token System.Threading.CancellationToken
리턴 System.Threading.Task

OnStopped() 보호된 메소드

protected OnStopped ( CancellationToken cancel_token ) : System.Threading.Task
cancel_token System.Threading.CancellationToken
리턴 System.Threading.Task

OutputStreamBase() 공개 메소드

元になるストリーム、チャンネル、リクエストからHTTPOutputStreamを初期化します
public OutputStreamBase ( PeerCastStation.Core.PeerCast peercast, Stream input_stream, Stream output_stream, EndPoint remote_endpoint, AccessControlInfo access_control, Channel channel, byte header ) : System
peercast PeerCastStation.Core.PeerCast 所属するPeerCast
input_stream Stream 元になる受信ストリーム
output_stream Stream 元になる送信ストリーム
remote_endpoint System.Net.EndPoint 接続先のアドレス
access_control AccessControlInfo 接続可否および認証の情報
channel Channel 所属するチャンネル。無い場合はnull
header byte
리턴 System

Post() 공개 메소드

public Post ( Host from, Atom packet ) : void
from Host
packet Atom
리턴 void

Start() 공개 메소드

public Start ( ) : Task
리턴 Task

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( StopReason reason ) : void
reason StopReason
리턴 void