C# Class Protogame.DefaultHiveNATPunchthrough

Default implementation of IHiveNATPunchthrough.
Inheritance: IHiveNATPunchthrough
Mostra file Open project: RedpointGames/Protogame

Public Methods

Method Description
LookupEndpoints ( TempSessionWithSecrets userSession, string targetSession ) : Task>
PerformNATPunchthrough ( TempSessionWithSecrets userSession, UdpClient udpClient, int timeout ) : Task
PerformNATPunchthrough ( TempSessionWithSecrets userSession, int timeout ) : Task
StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession ) : Task
StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession, UdpClient udpClient ) : Task
StopBackgroundNATPunchthrough ( BackgroundNATPunchthrough backgroundNatPunchthrough ) : Task

Private Methods

Method Description
ContinuousNATPunchthrough ( BackgroundNATPunchthrough punchthrough ) : void
PerformNATPunchthroughInternal ( TempSessionWithSecrets userSession, UdpClient specificUdpClient, int timeout ) : Task

Method Details

LookupEndpoints() public method

public LookupEndpoints ( TempSessionWithSecrets userSession, string targetSession ) : Task>
userSession TempSessionWithSecrets
targetSession string
return Task>

PerformNATPunchthrough() public method

public PerformNATPunchthrough ( TempSessionWithSecrets userSession, UdpClient udpClient, int timeout ) : Task
userSession TempSessionWithSecrets
udpClient System.Net.Sockets.UdpClient
timeout int
return Task

PerformNATPunchthrough() public method

public PerformNATPunchthrough ( TempSessionWithSecrets userSession, int timeout ) : Task
userSession TempSessionWithSecrets
timeout int
return Task

StartBackgroundNATPunchthrough() public method

public StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession ) : Task
userSession TempSessionWithSecrets
return Task

StartBackgroundNATPunchthrough() public method

public StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession, UdpClient udpClient ) : Task
userSession TempSessionWithSecrets
udpClient System.Net.Sockets.UdpClient
return Task

StopBackgroundNATPunchthrough() public method

public StopBackgroundNATPunchthrough ( BackgroundNATPunchthrough backgroundNatPunchthrough ) : Task
backgroundNatPunchthrough BackgroundNATPunchthrough
return Task