Introduction - If you have any usage issues, please Google them yourself
private Pop3ConnectionState Connect(string host, int port, SslHandShake sslHandShake, bool ssl)
{
OnConnecting()
this._host = host
this._port = port
this._ssl = ssl
this._tcpClient = this.GetTcpClient(host, port)
if (this._tcpClient == null)
{
return Pop3ConnectionState.DISCONNECTED
}
this._stream = _tcpClient.GetStream()
if (ssl)
{
//do ssl handshake
if (sslHandShake == null) sslHandShake = new SslHandShake(host)
DoSslHandShake(sslHandShake)
if (_sslStream == null || _sslStream.IsAuthenticated == false)
{
this._connectionState = Pop3ConnectionState.DISCONNECTED
this._tcpClient = null
return this._connectionState
}
this._st