VideoCallServer.TCPServer.StopAllSocketListers C# (CSharp) Method

StopAllSocketListers() private method

Method that stops all clients and clears the list.
private StopAllSocketListers ( ) : void
return void
        private void StopAllSocketListers()
        {
            foreach (TCPSocketListener socketListener
                         in m_socketListenersList)
            {
                socketListener.StopSocketListener();
            }
            // Remove all elements from the list.
            m_socketListenersList.Clear();
            m_socketListenersList = null;
        }