Exemple #1
0
        public static void Disconnect()
        {
            if (socket == null)
            {
                return;
            }

            if (socket.IsConnectedToHost())
            {
                socket.DisconnectFromHost();
            }
        }
Exemple #2
0
 public void disconnect()
 {
     client.DisconnectFromHost();
 }