Public Member Functions | |
virtual void | OnConnectionReset (IDatagramSocket &socket, DWORD lastError)=0 |
Called when the connection is reset. | |
virtual void | OnConnectionClosure (IDatagramSocket &socket, ConnectionClosureReason reason)=0 |
Called when the connection is closed. | |
virtual void | OnConnectionClosed (IDatagramSocket &socket)=0 |
Called when the connection is closed. You will get both an OnConnectionClosure() callback with a closure reason and then an OnConnectionClosed() without a reason. OnConnectionClosed() MAY be removed in a future release of the framework. | |
virtual void | OnError (const JetByteTools::Core::_tstring &message)=0 |
Called when there is an error which is not related to a particular connection (such as an exception thrown whilst handling an I/O operation or something...). Not a lot you can do except log the error message... Possibly shouldn't be exposed to client code? | |
virtual void | OnError (const JetByteTools::Core::_tstring &message, DWORD lastError)=0 |
Protected Member Functions | |
virtual | ~IDatagramSocketCallback () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~IDatagramSocketCallback | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual void OnConnectionReset | ( | IDatagramSocket & | socket, | |
DWORD | lastError | |||
) | [pure virtual] |
Called when the connection is reset.
Implemented in CDatagramSocketConnectionManagerCallback, and CDatagramSocketConnectionManagerCallback.
virtual void OnConnectionClosure | ( | IDatagramSocket & | socket, | |
ConnectionClosureReason | reason | |||
) | [pure virtual] |
Called when the connection is closed.
Implemented in CDatagramSocketConnectionManagerCallback, CUDPConnectionCreator, and CDatagramSocketConnectionManagerCallback.
virtual void OnConnectionClosed | ( | IDatagramSocket & | socket | ) | [pure virtual] |
Called when the connection is closed. You will get both an OnConnectionClosure() callback with a closure reason and then an OnConnectionClosed() without a reason. OnConnectionClosed() MAY be removed in a future release of the framework.
Implemented in CDatagramSocketConnectionManagerCallback, and CDatagramSocketConnectionManagerCallback.
virtual void OnError | ( | const JetByteTools::Core::_tstring & | message | ) | [pure virtual, inherited] |
Called when there is an error which is not related to a particular connection (such as an exception thrown whilst handling an I/O operation or something...). Not a lot you can do except log the error message... Possibly shouldn't be exposed to client code?
Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CDatagramSocketConnectionManagerCallback, CDatagramSocketServerCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CDatagramSocketConnectionManagerCallback, CDatagramSocketServerCallback, and CStreamSocketServerExCallback.
virtual void OnError | ( | const JetByteTools::Core::_tstring & | message, | |
DWORD | lastError | |||
) | [pure virtual, inherited] |
Implemented in CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CDatagramSocketConnectionManagerCallback, CDatagramSocketServerCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CStreamSocketConnectionManagerCallback, CStreamSocketServerCallback, CStreamSocketServerExCallback, CDatagramSocketConnectionManagerCallback, CDatagramSocketServerCallback, and CStreamSocketServerExCallback.