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()); }
public SmtpClient(SmtpSession session) { this.session = session; }