NAT Traversal for UNET
Provides NAT punch-through, automatic port forwarding, and other useful features on top of Unity's UNET HLAPI networking system.
ExternalServer Class Reference

Used by the NetworkManager to allow the NetworkServer to accept incoming connections on more than one port. More...

Inherits NetworkServerSimple.

Public Member Functions

 ExternalServer (ulong clientGUID)
 
override void OnConnected (NetworkConnection conn)
 Adds the incoming connection to NetworkServer via AddExternalConnection More...
 
override void OnDisconnected (NetworkConnection conn)
 Removes the disconnecting connection from the NetworkServer via RemoveExternalConnection More...
 

Detailed Description

Used by the NetworkManager to allow the NetworkServer to accept incoming connections on more than one port.

Member Function Documentation

◆ OnConnected()

override void OnConnected ( NetworkConnection  conn)

Adds the incoming connection to NetworkServer via AddExternalConnection

Parameters
connThe incoming NetworkConnection.

◆ OnDisconnected()

override void OnDisconnected ( NetworkConnection  conn)

Removes the disconnecting connection from the NetworkServer via RemoveExternalConnection

Parameters
connThe disconnecting NetworkConnection