示例#1
0
		public Connection(int connectionID, Socket client, ProcessData processData)
		{
			// Initialize members
			_connectionId = connectionID;
			_client = client;
			_stringBuffer = new StringBuilder();
			_receiveBuffer = new byte[_bufferSize + 1];
			_processData = processData;
			_connected = true;
			_lastActivity = DateTime.Now;
			_session = new SmtpSession();
			BeginReceive();

			Send("220 {0}", Dns.GetHostName().ToLower());
		}
示例#2
0
        public Connection(int connectionID, Socket client, ProcessData processData)
        {
            // Initialize members
            _connectionId  = connectionID;
            _client        = client;
            _stringBuffer  = new StringBuilder();
            _receiveBuffer = new byte[_bufferSize + 1];
            _processData   = processData;
            _connected     = true;
            _lastActivity  = DateTime.Now;
            _session       = new SmtpSession();
            BeginReceive();

            Send("220 {0}", Dns.GetHostName().ToLower());
        }
示例#3
0
 public SmtpClient(SmtpSession session)
 {
     this.session = session;
 }
示例#4
0
		public SmtpClient(SmtpSession session)
		{
			this.session = session;
		}