// UNITY-MONOBEHAVIOUR STANDARD METHODS void Start() { registerSocket = SocketHelper.CreateTCPServer((int)PORTS.REGISTER, (int)VERSION.SUPPORTED_REGISTER, (handler) => { if (SocketHelper.CheckVersion(handler, (int)VERSION.SUPPORTED_REGISTER)) { HandleRegisterConnection(handler); } }); pingSocket = SocketHelper.CreateUDPServer((int)PORTS.PING, (endPoint, receivedBytes) => { if (SocketHelper.CheckVersion(ref receivedBytes, (int)VERSION.SUPPORTED_PING)) { HandlePingConnection(endPoint); AddVirtualControllerIP(endPoint); } }); }