by Ed O'Keefe posted on 2005/08/21 |
|
I'm writing a quick class to connect and retreive information from an SSL POP3 server. Everything works fine as far and sending information and getting responses back.
The problem comes when I receive a message that's bigger than the 1024 byte buffer that's being used on the SecureSocet.Receive method. For instance when an email message is greater than 1024 bytes.
The program gets the first 1024 buffer, reads it, and attempts to get the next chunk. Unfortunately the second call to receive hangs and never returns.
Am I going about this the wrong way? This is my first real attempt at socket programming.
Thanks for your help,
Ed |