W
webmaster
Request for assistance:
I'm in process of writing a PoP3 class in VB.NET 2 (VS 2005), and have
successfully managed to create a sub which will create a connection to
a PoP3 server on port 110 to download any waiting messages. I don't
want to use a pre-built component if at all possible. The following
code initiates the connection to the server and opens the stream for
input.
Dim TCP As Net.Sockets.TcpClient
Dim POP3Stream As System.IO.Stream
Dim inStream As System.IO.StreamReader
TCP = New Net.Sockets.TcpClient
TCP.Connect(strServer, 110)
POP3Stream = TCP.GetStream
inStream = New System.IO.StreamReader(POP3Stream)
[etc]
QUESTION: I also need to build SSL functionality into this application
to retreive messages from a service such as Google Email. I've found
the SSLStream class, but I'm unsure of how to implement this as I've
had no experience of native SSL functionality. I wondered if anyone
might be able to assist or point me in the right directions. Thanks
for your help.
I'm in process of writing a PoP3 class in VB.NET 2 (VS 2005), and have
successfully managed to create a sub which will create a connection to
a PoP3 server on port 110 to download any waiting messages. I don't
want to use a pre-built component if at all possible. The following
code initiates the connection to the server and opens the stream for
input.
Dim TCP As Net.Sockets.TcpClient
Dim POP3Stream As System.IO.Stream
Dim inStream As System.IO.StreamReader
TCP = New Net.Sockets.TcpClient
TCP.Connect(strServer, 110)
POP3Stream = TCP.GetStream
inStream = New System.IO.StreamReader(POP3Stream)
[etc]
QUESTION: I also need to build SSL functionality into this application
to retreive messages from a service such as Google Email. I've found
the SSLStream class, but I'm unsure of how to implement this as I've
had no experience of native SSL functionality. I wondered if anyone
might be able to assist or point me in the right directions. Thanks
for your help.