Libmpc.MpcConnection.Disconnect C# (CSharp) 메소드

Disconnect() 공개 메소드

Disconnects from the current MPD server.
public Disconnect ( ) : void
리턴 void
        public void Disconnect()
        {
            if (m_SocketManager == null)
            return;

              m_SocketManager.Socket.Close();
              m_SocketManager.Socket.Dispose();
              this.ClearConnectionFields();

              if (this.OnDisconnected != null)
            this.OnDisconnected.Invoke(this);
        }