private void RunServer() { IsStopping = false; while (!IsStopping) { (IrcServer = new IrcServer()).Run(); } }
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); }