Example #1
0
 public Server(IPAddress ip, int port)
 {
     _listener         = new TcpListener(ip, port);
     _ircClients       = new List <IrcClient>();
     _controller       = new IrcController(_ircClients);
     _commandProcessor = new IrcCommandProcessor(_controller);
 }
Example #2
0
        public Server(IPAddress ip, int port, string hostname)
        {
            EEGuestClient = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "guest", "guest", null);
            EEStaff       = EEGuestClient.BigDB.Load("config", "staff").Properties.Select(p => p.ToLower()).ToList();

            _listener         = new TcpListener(ip, port);
            _ircClients       = new List <IrcClient>();
            _controller       = new IrcController(_ircClients);
            _commandProcessor = new IrcCommandProcessor(_controller);

            HostName = hostname;
        }