C# Class MonoTorrent.Client.ConnectionManager

Main controller class for all incoming and outgoing connections
Mostra file Open project: mono/monotorrent Class Usage Examples

Private Properties

Property Type Description
AsyncCleanupSocket void
CancelPendingConnects void
CleanupSocket void
ConnectToPeer void
EndCheckEncryption void
EndCreateConnection void
EndSendMessage void
IncomingConnectionAccepted void
MessageReceived void
PeerHandshakeReceived void
PeerHandshakeSent void
PeerMessageSent void
ProcessFreshConnection void
ProcessQueue void
RaisePeerMessageTransferred void
SendMessage void
ShouldBanPeer bool
TryConnect bool
TryConnect void

Public Methods

Method Description
ConnectionManager ( MonoTorrent.Client.ClientEngine engine ) : System

Private Methods

Method Description
AsyncCleanupSocket ( MonoTorrent.Client.PeerId id, bool localClose, string message ) : void
CancelPendingConnects ( TorrentManager manager ) : void
CleanupSocket ( MonoTorrent.Client.PeerId id, string message ) : void

This method is called when a connection needs to be closed and the resources for it released.

ConnectToPeer ( TorrentManager manager, Peer peer ) : void
EndCheckEncryption ( IAsyncResult result ) : void
EndCreateConnection ( bool succeeded, int count, object state ) : void
EndSendMessage ( bool succeeded, int count, object state ) : void
IncomingConnectionAccepted ( bool succeeded, int count, object state ) : void

This method is called when the ClientEngine recieves a valid incoming connection

MessageReceived ( bool successful, MonoTorrent.Client.Messages.PeerMessage message, object state ) : void
PeerHandshakeReceived ( bool succeeded, MonoTorrent.Client.Messages.PeerMessage message, object state ) : void
PeerHandshakeSent ( MonoTorrent.Client.PeerId id ) : void
PeerMessageSent ( MonoTorrent.Client.PeerId id ) : void
ProcessFreshConnection ( MonoTorrent.Client.PeerId id ) : void
ProcessQueue ( MonoTorrent.Client.PeerId id ) : void
RaisePeerMessageTransferred ( MonoTorrent.Client.PeerMessageEventArgs e ) : void
SendMessage ( MonoTorrent.Client.PeerId id, MonoTorrent.Client.Messages.PeerMessage message, MessagingCallback callback ) : void
ShouldBanPeer ( Peer peer ) : bool
TryConnect ( TorrentManager manager ) : bool
TryConnect ( ) : void

Method Details

ConnectionManager() public method

public ConnectionManager ( MonoTorrent.Client.ClientEngine engine ) : System
engine MonoTorrent.Client.ClientEngine
return System