![]() |
TSDuck v3.45-4686
MPEG Transport Stream Toolkit
|
Interface class for notification of open/close on sockets. More...
#include <tsSocketHandlerInterface.h>

Public Member Functions | |
| virtual void | handleSocketCloseComplete (Socket &sock, bool silent, bool success) |
| Called after a socket is closed. | |
| virtual void | handleSocketCloseStart (Socket &sock, bool silent) |
| Called when a socket is about to be closed. | |
| virtual void | handleSocketConnected (TCPConnection &sock) |
| Called when a TCP socket is successfully connected. | |
| virtual void | handleSocketDisconnected (TCPConnection &sock, bool silent) |
| Called when a TCP socket is disconnected. | |
| virtual void | handleSocketOpenComplete (Socket &sock, bool success) |
| Called after a socket is opened (or failed to open). | |
| virtual void | handleSocketOpenStart (Socket &sock) |
| Called when a socket is about to be opened. | |
Interface class for notification of open/close on sockets.
All methods are empty by default. An application may implement the required ones only.
|
virtual |
Called when a socket is about to be opened.
Never called when the application tries to open a socket which is already open.
| [in,out] | sock | Socket for which the handler is invoked. |
|
virtual |
Called after a socket is opened (or failed to open).
| [in,out] | sock | Socket for which the handler is invoked. |
| [in] | success | True if the open was successful, false if the open failed. In case of error, the socket shall be considered as closed. |
|
virtual |
Called when a TCP socket is successfully connected.
| [in,out] | sock | Socket for which the handler is invoked. |
Reimplemented in ts::tlv::Connection< SAFETY >, ts::tlv::Connection< ThreadSafety::Full >, and ts::tlv::Connection< ThreadSafety::None >.
|
virtual |
Called when a TCP socket is disconnected.
| [in,out] | sock | Socket for which the handler is invoked. |
| [in] | silent | Same value as passed to disconnect() or close(). |
|
virtual |
Called when a socket is about to be closed.
Never called when the application tries to close a socket which is not open.
| [in,out] | sock | Socket for which the handler is invoked. |
| [in] | silent | Same value as passed to close(). |
|
virtual |
Called after a socket is closed.
| [in,out] | sock | Socket for which the handler is invoked. |
| [in] | silent | Same value as passed to close(). |
| [in] | success | True if the close was successful, false if there was an error during the close. The socket shall be considered as closed on all cases, regardless of success. |