C# Class PeerCastStation.HTTP.HTTPPushSourceConnection

Inheritance: PeerCastStation.Core.SourceConnectionBase
Exibir arquivo Open project: kumaryu/peercaststation

Public Methods

Method Description
GetConnectionInfo ( ) : ConnectionInfo
HTTPPushSourceConnection ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri, IContentReader content_reader, bool use_content_bitrate ) : PeerCastStation.Core

Protected Methods

Method Description
DoConnect ( Uri source, CancellationToken cancellationToken ) : Task
DoPost ( Host from, Atom packet ) : void
DoProcess ( CancellationToken cancellationToken ) : Task

Private Methods

Method Description
GetBindAddresses ( Uri uri ) : IEnumerable
GetChunkedStream ( Stream stream ) : Stream
Handshake ( CancellationToken cancel_token ) : Task
ReadContents ( CancellationToken cancel_token ) : Task

Method Details

DoConnect() protected method

protected DoConnect ( Uri source, CancellationToken cancellationToken ) : Task
source System.Uri
cancellationToken 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 cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

GetConnectionInfo() public method

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

HTTPPushSourceConnection() public method

public HTTPPushSourceConnection ( PeerCastStation.Core.PeerCast peercast, Channel channel, Uri source_uri, IContentReader content_reader, bool use_content_bitrate ) : PeerCastStation.Core
peercast PeerCastStation.Core.PeerCast
channel Channel
source_uri System.Uri
content_reader IContentReader
use_content_bitrate bool
return PeerCastStation.Core