C# Class Protogame.DefaultHiveNATPunchthrough

Default implementation of IHiveNATPunchthrough.
Inheritance: IHiveNATPunchthrough
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

Méthode 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

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

Method Details

LookupEndpoints() public méthode

public LookupEndpoints ( TempSessionWithSecrets userSession, string targetSession ) : Task>
userSession TempSessionWithSecrets
targetSession string
Résultat Task>

PerformNATPunchthrough() public méthode

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

PerformNATPunchthrough() public méthode

public PerformNATPunchthrough ( TempSessionWithSecrets userSession, int timeout ) : Task
userSession TempSessionWithSecrets
timeout int
Résultat Task

StartBackgroundNATPunchthrough() public méthode

public StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession ) : Task
userSession TempSessionWithSecrets
Résultat Task

StartBackgroundNATPunchthrough() public méthode

public StartBackgroundNATPunchthrough ( TempSessionWithSecrets userSession, UdpClient udpClient ) : Task
userSession TempSessionWithSecrets
udpClient System.Net.Sockets.UdpClient
Résultat Task

StopBackgroundNATPunchthrough() public méthode

public StopBackgroundNATPunchthrough ( BackgroundNATPunchthrough backgroundNatPunchthrough ) : Task
backgroundNatPunchthrough BackgroundNATPunchthrough
Résultat Task