LobbyServer.World.Listener.Listener C# (CSharp) Method

Listener() public method

public Listener ( String ip, Int32 port ) : System
ip String
port System.Int32
return System
        public Listener(String ip, Int32 port)
        {
            Worlds = new Dictionary<UInt32, World>();
            IPAddress address = IPAddress.Any;
            try
            {
                address = IPAddress.Parse(ip);
            }
            catch
            { }

            IP = address.ToString();
            Port = port;
            tcpListener = new TcpListener(address, port);
            listenThread = new Thread(new ThreadStart(listenForClients));
            listenThread.Start();
        }