C# Class LiteNetLib.NatPunchModule

Show file Open project: RevenantX/LiteNetLib Class Usage Examples

Public Methods

Method 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

Method 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 method

public Init ( INatPunchListener listener ) : void
listener INatPunchListener
return void

NatIntroduce() public method

public NatIntroduce ( NetEndPoint hostInternal, NetEndPoint hostExternal, NetEndPoint clientInternal, NetEndPoint clientExternal, string additionalInfo ) : void
hostInternal NetEndPoint
hostExternal NetEndPoint
clientInternal NetEndPoint
clientExternal NetEndPoint
additionalInfo string
return void

PollEvents() public method

public PollEvents ( ) : void
return void

SendNatIntroduceRequest() public method

public SendNatIntroduceRequest ( NetEndPoint masterServerEndPoint, string additionalInfo ) : void
masterServerEndPoint NetEndPoint
additionalInfo string
return void