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
 
Socket features NOT SUPPORTED by SecureSocket  
by Demez Christophe [cdemez2 at hotmail dot com]
posted on 2006/01/27

Hi,

In the article at :
http://msdn.microsoft.com/msdnmag/issues/05/08/HighPerformanceSockets/

The do this :
-------------
for (int i = 0; i < 10; i++)_serverSocket.BeginAccept(new AsyncCallback(AcceptCallback), _serverSocket);

Why ?
-----
Read the article please, it is to allow to support a lot of connections.

Problem
-------
The SecureSocket do not support it !
Only one accept :-(

by Demez Christophe [cdemez2 at hotmail dot com]
posted on 2006/01/27

See this link, it is the code of the article :

http://msdn.microsoft.com/msdnmag/issues/05/08/HighPerformanceSockets/default.aspx?fig=true#fig3

Check for "Asynchronous Server"

by Dmytro
posted on 2006/02/16

Wait a minute, so you are saying that you can fix it in the library? can you post chunks of code?

From my understanding I think the library does support multi-threaded connections, just a bit slow on encryption part, thats all.

 

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