예제 #1
0
 /// <summary>
 /// Starts the login to server process.
 /// </summary>
 /// <param name="server">The host server.</param>
 /// <param name="port">The port to connect to.</param>
 public void StartLogin(string server, string port)
 {
     if (_signaller.IsConnected())
     {
         return;
     }
     _signaller.Connect(server, port, GetLocalPeerName());
 }
예제 #2
0
        /// <summary>
        /// Starts the login to server process.
        /// </summary>
        /// <param name="uri">what to connect to</param>
        public void StartLogin(string uri, string peerName = "")
        {
            if (_signaller.IsConnected())
            {
                return;
            }

            _signaller.Connect(uri, peerName == String.Empty ? GetLocalPeerName() : peerName);
        }
예제 #3
0
        /// <summary>
        /// Starts the login to server process.
        /// </summary>
        /// <param name="server">The host server.</param>
        /// <param name="port">The port to connect to.</param>
        public void StartLogin(string server, string port, string peerName = "")
        {
            if (_signaller.IsConnected())
            {
                return;
            }

            //_signaller.Connect(server, port, GetLocalPeerName());
            _signaller.Connect(server, port, peerName == String.Empty ? GetLocalPeerName() : peerName);
        }