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 OnFatalError (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 OnRemoteFatalError (JetByteTools::Socket::IStreamSocket &socket, SECURITY_STATUS status)=0
virtual void OnNegotiationComplete (JetByteTools::Socket::IStreamSocket &socket, const IClientContext &context)=0
 Called to notify you of an outbound connection's attributes.
virtual void OnNegotiationComplete (JetByteTools::Socket::IStreamSocket &socket, const IServerContext &context)=0
 Called to notify you of an inbound connection's attributes.

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 OnFatalError ( 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 OnRemoteFatalError ( JetByteTools::Socket::IStreamSocket socket,
SECURITY_STATUS  status 
) [pure virtual]

virtual void OnNegotiationComplete ( JetByteTools::Socket::IStreamSocket socket,
const IClientContext context 
) [pure virtual]

Called to notify you of an outbound connection's attributes.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.

virtual void OnNegotiationComplete ( JetByteTools::Socket::IStreamSocket socket,
const IServerContext context 
) [pure virtual]

Called to notify you of an inbound connection's attributes.

Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, and CStreamSocketServerExCallback.


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