Base class for subscription to socket events.
More...
#include <tsSocketSubscriptionBase.h>
|
| template<typename F > |
| void | callSubscribers (F &&func) |
| | Call a handler on all subscribers, using a lambda expression.
|
| |
Base class for subscription to socket events.
Used as base class in Socket and other socket wrappers which intercept socket events.
◆ addSubscription()
Add a subscriber to open/close events.
- Parameters
-
| [in] | handler | The object to call on open() and close(). |
◆ cancelSubscription()
Remove a subscriber to open/close events.
- Parameters
-
| [in] | handler | The object to no longer call on open() and close(). |
◆ callSubscribers()
template<typename F >
| void ts::SocketSubscriptionBase::callSubscribers |
( |
F && |
func | ) |
|
|
inlineprotected |
Call a handler on all subscribers, using a lambda expression.
- Parameters
-
| [in] | func | Function to call as lambda expression. |
The documentation for this class was generated from the following file: