EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Cipher renegotiation

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#14366
Posted: 09/03/2010 08:35:46
by Scott Radden (Basic support level)
Joined: 09/02/2010
Posts: 7

Thanks for your response.

The server sample does already have a loop:

while (connected)
{
if (sslServer.Poll(2 * 1000 * 1000, SelectMode.SelectRead) && connected)

-- code elided
}

Would SelectMode.SelectRead detect the handshake in the queue?
#14367
Posted: 09/03/2010 09:59:23
by Ken Ivanov (EldoS Corp.)

The purpose of that loop is accepting incoming connections (not reading/writing to established connections). The loop I was talking about should be implemented in the ServerResponseWriter.WriteServerResponse() method (the method itself should be renamed to something like RunServerLoop() to reflect those changes).
#14380
Posted: 09/06/2010 06:43:13
by Scott Radden (Basic support level)
Joined: 09/02/2010
Posts: 7

Quote
ServerResponseWriter.WriteServerResponse() method


My bad... added loop to continue receiving on the socket within the above method and the OnCiphersNegotiated event is now successfully raised.

Many thanks for all the posts i got on this.

Reply

Statistics

Topic viewed 2859 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!