Esempio n. 1
0
 private void RunServer()
 {
     IsStopping = false;
     while (!IsStopping)
     {
         (IrcServer = new IrcServer()).Run();
     }
 }
Esempio n. 2
0
        public Client(int sessionId, IrcServer server, Socket socket)
        {
            SessionId = sessionId;
            Server = server;
            _socket = socket;

            ClientInfo = new ClientInfo();

            _currentBuffer = new ByteQueue();
            _processedBuffer = new ByteQueue();
            FragPackets = new ByteQueue();

            _nextActivityCheck = DateTime.Now + TimeSpan.FromSeconds(30);
        }