C# Class Gwupe.Agent.Managers.P2PManager

Mostra file Open project: gwupe/Gwupe Class Usage Examples

Public Methods

Method Description
P2PManager ( ) : System
Reset ( ) : void
SetupTunnel ( String uniqueId, IPEndPoint facilitatorEndPoint, String encryptionKey ) : PeerInfo

Private Methods

Method Description
AwaitConnection ( string connectionId, Action receiveConnection ) : void
GetP2PConnection ( Attendance secondParty, String connectionId ) : ISocket
GetPeerInfoFromResponse ( InitP2PConnectionRs response ) : PeerInfo
GetPendingTunnel ( string uniqueId ) : TunnelEndpointContainer
InitP2PConnection ( Attendance secondParty, String connectionId ) : ISocket
ReceiveP2PTunnel ( string connectionId, PeerInfo peerInfo ) : void
RunSyncer ( string connectionId, PeerInfo peer, ITunnelEndpoint pendingTunnel, Action receivingMethod ) : void

Method Details

P2PManager() public method

public P2PManager ( ) : System
return System

Reset() public method

public Reset ( ) : void
return void

SetupTunnel() public method

public SetupTunnel ( String uniqueId, IPEndPoint facilitatorEndPoint, String encryptionKey ) : PeerInfo
uniqueId String
facilitatorEndPoint System.Net.IPEndPoint
encryptionKey String
return Gwupe.Communication.P2P.P2P.Tunnel.PeerInfo