C# Class LiteNetLib.NatPunchModule

Afficher le fichier Open project: RevenantX/LiteNetLib Class Usage Examples

Méthodes publiques

Méthode Description
Init ( INatPunchListener listener ) : void
NatIntroduce ( NetEndPoint hostInternal, NetEndPoint hostExternal, NetEndPoint clientInternal, NetEndPoint clientExternal, string additionalInfo ) : void
PollEvents ( ) : void
SendNatIntroduceRequest ( NetEndPoint masterServerEndPoint, string additionalInfo ) : void

Private Methods

Méthode Description
HandleNatIntroduction ( NetDataReader dr ) : void
HandleNatIntroductionRequest ( NetEndPoint senderEndPoint, NetDataReader dr ) : void
HandleNatPunch ( NetEndPoint senderEndPoint, NetDataReader dr ) : void
NatPunchModule ( NetBase netBase, NetSocket socket ) : System
ProcessMessage ( NetEndPoint senderEndPoint, PacketProperty property, byte data ) : void

Method Details

Init() public méthode

public Init ( INatPunchListener listener ) : void
listener INatPunchListener
Résultat void

NatIntroduce() public méthode

public NatIntroduce ( NetEndPoint hostInternal, NetEndPoint hostExternal, NetEndPoint clientInternal, NetEndPoint clientExternal, string additionalInfo ) : void
hostInternal NetEndPoint
hostExternal NetEndPoint
clientInternal NetEndPoint
clientExternal NetEndPoint
additionalInfo string
Résultat void

PollEvents() public méthode

public PollEvents ( ) : void
Résultat void

SendNatIntroduceRequest() public méthode

public SendNatIntroduceRequest ( NetEndPoint masterServerEndPoint, string additionalInfo ) : void
masterServerEndPoint NetEndPoint
additionalInfo string
Résultat void