C# Class PeerCastStation.PCP.PCPYellowPageClient

Inheritance: System.MarshalByRefObject, IYellowPageClient
Mostrar archivo Open project: kumaryu/peercaststation Class Usage Examples

Private Properties

Property Type Description
AnnounceThreadProc void
CreateChannelBcst Atom
HostToUri System.Uri
OnChannelClosed void
OnChannelPropertyChanged void
OnPCPBcst void
OnPCPOleh void
OnPCPQuit void
ParseGuid System.Guid
ParseInt int?
ParseStr string
ParseUptime int?
PostChannelInfo void
PostHostInfo void
ProcessAtom void
ReadHosts List
ReadResponse string
UpdateChannelInfo void

Public Methods

Method Description
Announce ( Channel channel ) : IAnnouncingChannel
FindTracker ( System.Guid channel_id ) : Uri
GetChannelsAsync ( CancellationToken cancel_token ) : System.Threading.Tasks.Task>
GetConnectionInfo ( ) : ConnectionInfo
IsValidUri ( Uri uri ) : bool
PCPYellowPageClient ( PeerCastStation.Core.PeerCast peercast, string name, Uri announce_uri, Uri channels_uri ) : System
RestartAnnounce ( ) : void
RestartAnnounce ( IAnnouncingChannel announcing ) : void
StopAnnounce ( ) : void
StopAnnounce ( IAnnouncingChannel announcing ) : void

Private Methods

Method Description
AnnounceThreadProc ( ) : void
CreateChannelBcst ( Channel channel, bool playing ) : Atom
HostToUri ( Host host, System.Guid channel_id ) : Uri
OnChannelClosed ( object sender, EventArgs e ) : void
OnChannelPropertyChanged ( object sender, EventArgs e ) : void
OnPCPBcst ( Atom atom ) : void
OnPCPOleh ( Atom atom ) : void
OnPCPQuit ( Atom atom ) : void
ParseGuid ( string token ) : System.Guid
ParseInt ( string token ) : int?
ParseStr ( string token ) : string
ParseUptime ( string token ) : int?
PostChannelInfo ( AtomCollection parent, Channel channel ) : void
PostHostInfo ( AtomCollection parent, Channel channel, bool playing ) : void
ProcessAtom ( Atom atom ) : void
ReadHosts ( Stream s, System.Guid channel_id ) : List
ReadResponse ( Stream s ) : string
UpdateChannelInfo ( Channel channel, bool playing ) : void

Method Details

Announce() public method

public Announce ( Channel channel ) : IAnnouncingChannel
channel Channel
return IAnnouncingChannel

FindTracker() public method

public FindTracker ( System.Guid channel_id ) : Uri
channel_id System.Guid
return System.Uri

GetChannelsAsync() public method

public GetChannelsAsync ( CancellationToken cancel_token ) : System.Threading.Tasks.Task>
cancel_token System.Threading.CancellationToken
return System.Threading.Tasks.Task>

GetConnectionInfo() public method

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

IsValidUri() public static method

public static IsValidUri ( Uri uri ) : bool
uri System.Uri
return bool

PCPYellowPageClient() public method

public PCPYellowPageClient ( PeerCastStation.Core.PeerCast peercast, string name, Uri announce_uri, Uri channels_uri ) : System
peercast PeerCastStation.Core.PeerCast
name string
announce_uri System.Uri
channels_uri System.Uri
return System

RestartAnnounce() public method

public RestartAnnounce ( ) : void
return void

RestartAnnounce() public method

public RestartAnnounce ( IAnnouncingChannel announcing ) : void
announcing IAnnouncingChannel
return void

StopAnnounce() public method

public StopAnnounce ( ) : void
return void

StopAnnounce() public method

public StopAnnounce ( IAnnouncingChannel announcing ) : void
announcing IAnnouncingChannel
return void