The C++ framework for developing highly scalable, high performance servers on Windows platforms.

ISecureStreamSocketCallback Class Reference

Inheritance diagram for ISecureStreamSocketCallback:

List of all members.

Public Member Functions

virtual void OnSecureConnectionEstablished (JetByteTools::Socket::IStreamSocket &socket, const JetByteTools::Socket::IAddress &address)=0
 Called when a secure connection is established, i.e. a connection that is protected by SSL. This is called before the OnConnectionEstablished() is called and is intended to allow the user to do specific connection establishment operations that are only required for secure connections. The address is the address that the socket is connected to.
virtual void OnSecureSocketReleased (JetByteTools::Core::IIndexedOpaqueUserData &userData)=0
 Called when a secure connection is released back to the allocator. This is called after OnSocketReleased() and is intended to allow you to clean up any user data that you might need to clean up for secure connections.
virtual void FatalError (JetByteTools::Socket::IStreamSocket &socket, SECURITY_STATUS status)=0
 Called when there is a fatal error during security processing, such as a failure to negotiate or decrypt. The connection will be shutdown after this call completes.
virtual void OnContextComplete (JetByteTools::Socket::IStreamSocket &socket, const CContext &context)=0
 Called when a connection is established and the handshake has been completed.
virtual bool Verify (JetByteTools::Socket::IStreamSocket &socket, const JetByteTools::Core::_tstring &targetName, const CContext &context)=0
 Called to verify a connection's certificates.

Protected Member Functions

virtual ~ISecureStreamSocketCallback ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Constructor & Destructor Documentation

virtual ~ISecureStreamSocketCallback (  )  [protected, virtual]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual void OnSecureConnectionEstablished ( JetByteTools::Socket::IStreamSocket socket,
const JetByteTools::Socket::IAddress address 
) [pure virtual]

Called when a secure connection is established, i.e. a connection that is protected by SSL. This is called before the OnConnectionEstablished() is called and is intended to allow the user to do specific connection establishment operations that are only required for secure connections. The address is the address that the socket is connected to.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.

virtual void OnSecureSocketReleased ( JetByteTools::Core::IIndexedOpaqueUserData userData  )  [pure virtual]

Called when a secure connection is released back to the allocator. This is called after OnSocketReleased() and is intended to allow you to clean up any user data that you might need to clean up for secure connections.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.

virtual void FatalError ( JetByteTools::Socket::IStreamSocket socket,
SECURITY_STATUS  status 
) [pure virtual]

Called when there is a fatal error during security processing, such as a failure to negotiate or decrypt. The connection will be shutdown after this call completes.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.

virtual void OnContextComplete ( JetByteTools::Socket::IStreamSocket socket,
const CContext context 
) [pure virtual]

Called when a connection is established and the handshake has been completed.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.

virtual bool Verify ( JetByteTools::Socket::IStreamSocket socket,
const JetByteTools::Core::_tstring targetName,
const CContext context 
) [pure virtual]

Called to verify a connection's certificates.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.


Generated on Sun Sep 12 19:10:58 2021 for The Server Framework - v7.4 by doxygen 1.5.3