Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CAsyncSecureSocketServer< T > Class Template Reference

Asynchronous secure socket server support. More...

#include <AsyncSecureSocketServer.h>

Inheritance diagram for OW32::CAsyncSecureSocketServer< T >:

OW32::CAsyncSecureSocket< T > List of all members.

Public Member Functions

 CAsyncSecureSocketServer (CAsyncSocketCallback *pCallback)
 Construct an asynchronous secure socket server.
 CAsyncSecureSocketServer (CAsyncSocketCallback *pCallback, SOCKET s)
 Construct an asynchronous secure socket server.
virtual int shutdown (int how)
 Tear down the current connection.
SECURITY_STATUS setServerCertificate (PCCERT_CONTEXT pCertContext, DWORD dwEnabledProtocols=0)
 Create server credentials from a certificate.

Static Public Member Functions

SECURITY_STATUS createCredentialsFromCertificate (CredHandle *phCreds, PCCERT_CONTEXT pCertContext, DWORD dwEnabledProtocols=0)
 Create server credentials from a certificate context.

Protected Member Functions

virtual void negotiateLoop ()
 Called to perform the SSL negotiation for this connection.

Detailed Description

template<class T>
class OW32::CAsyncSecureSocketServer< T >

Asynchronous secure socket server support.


Constructor & Destructor Documentation

template<class T>
OW32::CAsyncSecureSocketServer< T >::CAsyncSecureSocketServer CAsyncSocketCallback pCallback  )  [inline]
 

Construct an asynchronous secure socket server.

Parameters:
pCallback The callback class.

template<class T>
OW32::CAsyncSecureSocketServer< T >::CAsyncSecureSocketServer CAsyncSocketCallback pCallback,
SOCKET  s
[inline]
 

Construct an asynchronous secure socket server.

Parameters:
pCallback The callback class.
s An existing socket handle.


Member Function Documentation

template<class T>
SECURITY_STATUS OW32::CAsyncSecureSocketServer< T >::createCredentialsFromCertificate CredHandle *  phCreds,
PCCERT_CONTEXT  pCertContext,
DWORD  dwEnabledProtocols = 0
[inline, static]
 

Create server credentials from a certificate context.

Returns:
SEC_E_OK if successful, an error code if not.
Parameters:
phCreds Output - the created credentials.
pCertContext The certificate to use.
dwEnabledProtocols The protocols to enable for this connection.
Basically, if you are accepting a bunch of connections you can use this function to manage the Schannel CredHandle for yourself; this is faster than calling it each time with a certificate context.

template<class T>
SECURITY_STATUS OW32::CAsyncSecureSocketServer< T >::setServerCertificate PCCERT_CONTEXT  pCertContext,
DWORD  dwEnabledProtocols = 0
 

Create server credentials from a certificate.

Returns:
SEC_E_OK if successful, an error code if not.
Parameters:
pCertContext The certificate to use.
dwEnabledProtocols The protocols to enable for this connection.

template<class T>
int OW32::CAsyncSecureSocketServer< T >::shutdown int  how  )  [virtual]
 

Tear down the current connection.

Returns:
SOCKET_ERROR on failure, 0 if successful.
Parameters:
how Set to SD_SEND only


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:22 2005 for OW32 by  doxygen 1.3.9.1