News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
SecureSocket.Receive  
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

by the way
posted on 2005/08/23

Have you tried to use another buffer to rebuild sent data from the parts you receive?

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.