Beispiel #1
0
        /// <summary>
        /// Reads data from socket.
        /// </summary>
        /// <param name="p_socket"></param>
        /// <param name="p_sessionid"></param>
        /// <param name="p_connectedip"></param>
        /// <returns></returns>
        private string ReadLine(Socket p_socket, string p_sessionid, string p_connectedip, bool p_writeLog)
        {
            string _result = SmtpCore.ReadLine(p_socket);

            if (MailSniffing == true && p_writeLog == true)
            {
                ELogger.SNG.WriteLog("E", String.Format("session[{0}] <<< server[{1}]: {2}", p_sessionid, p_connectedip, _result + "<CRLF>"));
            }

            return(_result);
        }