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

OW32::CAsyncSecureSocketClient< T > Class Template Reference

Asynchronous secure socket client support. More...

#include <AsyncSecureSocketClient.h>

Inheritance diagram for OW32::CAsyncSecureSocketClient< T >:

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

Public Member Functions

 CAsyncSecureSocketClient (CAsyncSocketCallback *pCallback)
 Construct an asynchronous secure socket client.
 CAsyncSecureSocketClient (CAsyncSocketCallback *pCallback, SOCKET s)
 Construct an asynchronous secure socket client.
virtual int shutdown (int how)
 shutdown the connection
void setServerName (LPCTSTR lpszServerName)
 Set the name of the remote server.
SECURITY_STATUS setClientCertificate (PCCERT_CONTEXT pCertContext, DWORD dwEnabledProtocols=0)
 Set the certificate to be used when connecting.
SECURITY_STATUS createNullCredentials (DWORD dwEnabledProtocols=0)
 Create empty credentials indicating an anonymous connection.

Static Public Member Functions

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

Protected Member Functions

virtual void negotiateLoop ()
 negotiate the connection, called automatically by connect.

Detailed Description

template<class T>
class OW32::CAsyncSecureSocketClient< T >

Asynchronous secure socket client support.


Constructor & Destructor Documentation

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

Construct an asynchronous secure socket client.

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

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

Construct an asynchronous secure socket client.

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


Member Function Documentation

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

Create credentials from a certificate context.

Parameters:
phCreds Output - the new credentials handle.
pCertContext The certificate to use.
dwEnabledProtocols The protocols that will be enabled for this connection.

template<class T>
SECURITY_STATUS OW32::CAsyncSecureSocketClient< T >::createNullCredentials DWORD  dwEnabledProtocols = 0  ) 
 

Create empty credentials indicating an anonymous connection.

Parameters:
dwEnabledProtocols The protocols that will be enabled for this connection.

template<class T>
void OW32::CAsyncSecureSocketClient< T >::negotiateLoop  )  [protected, virtual]
 

negotiate the connection, called automatically by connect.

If assigning an existing, connected socket handle then you will need to call this to conduct the appropriate SSL negotiation.

Implements OW32::CAsyncSecureSocket< T >.

template<class T>
SECURITY_STATUS OW32::CAsyncSecureSocketClient< T >::setClientCertificate PCCERT_CONTEXT  pCertContext,
DWORD  dwEnabledProtocols = 0
 

Set the certificate to be used when connecting.

Parameters:
pCertContext The certificate to use.
dwEnabledProtocols The protocols that will be enabled for this connection.

template<class T>
void OW32::CAsyncSecureSocketClient< T >::setServerName LPCTSTR  lpszServerName  )  [inline]
 

Set the name of the remote server.

Parameters:
lpszServerName The name of the remote server.

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

shutdown the connection

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