public void ConnectToRelay() { if (!_connectedToRelay) { _clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()]; clientToServerTransport.ClientConnect(serverIP); } }
public void JoinServer(string ip, int port) { if (SupportsNATPunch()) { SetTransportPort(port); } directConnectTransport.ClientConnect(ip); }
public void ConnectToRelay() { if (!_connectedToRelay) { _clientSendBuffer = new byte[clientToServerTransport.GetMaxPacketSize()]; clientToServerTransport.ClientConnect(serverIP); } else { Debug.Log("Already connected to relay!"); } }
public override void ClientConnect(string address) { GenerateInitialKeyPair(); CommunicationTransport.ClientConnect(address); }
public void JoinServer(string ip) { directConnectTransport.ClientConnect(ip); }