/// <summary> /// This thread checks tcp port for incoming IRC messages every millisecond. /// </summary> private void messageRetriever() { serverStream = irc.tcpClient.GetStream(); int buffSize = 0; byte[] inStream = new byte[10025]; buffSize = irc.tcpClient.ReceiveBufferSize; while (consoleOpen) { try { irc.readMessage(); Thread.Sleep(1); } catch (Exception e) { Debug.WriteLine(e.StackTrace); } } }