public void ConnectToRelay()
        {
            if (!_connectedToRelay)
            {
                _clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()];

                clientToServerTransport.ClientConnect(serverIP);
            }
        }
Beispiel #2
0
    public void JoinServer(string ip, int port)
    {
        if (SupportsNATPunch())
        {
            SetTransportPort(port);
        }

        directConnectTransport.ClientConnect(ip);
    }
Beispiel #3
0
        public void ConnectToRelay()
        {
            if (!_connectedToRelay)
            {
                _clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()];

                clientToServerTransport.ClientConnect(serverIP);
            }
            else
            {
                Debug.Log("Already connected to relay!");
            }
        }
Beispiel #4
0
 public override void ClientConnect(string address)
 {
     GenerateInitialKeyPair();
     CommunicationTransport.ClientConnect(address);
 }
 public void JoinServer(string ip)
 {
     directConnectTransport.ClientConnect(ip);
 }