SSDP::MessageSpec Class Reference
Defines the information used to create an outgoing message. More...
#include <MessageSpec.h>
Public Member Functions | |
MessageSpec (MessageType type) | |
MessageSpec (MessageType type, SearchTarget target, void *object=nullptr) | |
MessageSpec (NotifySubtype nts, SearchTarget target, void *object=nullptr) | |
MessageSpec (const MessageSpec &ms, SearchMatch match, void *object) | |
Construct a new message spec for a specific match type. More... | |
bool | operator== (const MessageSpec &rhs) const |
IpAddress | remoteIp () const |
Get the remote IP address. More... | |
uint16_t | remotePort () const |
Get the remote port number. More... | |
template<class Object > | |
Object * | object () const |
Get the target object pointer. More... | |
MessageType | type () const |
Get the message type. More... | |
NotifySubtype | notifySubtype () const |
Get the notification sub-type. More... | |
SearchMatch | match () const |
Get the search match type. More... | |
SearchTarget | target () const |
Get the search target. More... | |
void | setTarget (SearchTarget target) |
Set the search target. More... | |
void | setRemote (IpAddress address, uint16_t port) |
Set the remote address and port. More... | |
void | setRepeat (uint8_t count) |
Set number of times to repeat message. More... | |
uint8_t | repeat () const |
Get current repeat value. More... | |
bool | shouldRepeat () |
Check if message should be repeated and adjust counter. More... | |
Friends | |
class | MessageQueue |
Detailed Description
Defines the information used to create an outgoing message.
The message queue stores these objects as a linked list.
Constructor & Destructor Documentation
◆ MessageSpec() [1/4]
|
inline |
◆ MessageSpec() [2/4]
|
inline |
◆ MessageSpec() [3/4]
|
inline |
◆ MessageSpec() [4/4]
|
inline |
Construct a new message spec for a specific match type.
- Parameters
-
ms Template message spec match The match type object Target for message
Member Function Documentation
◆ match()
|
inline |
Get the search match type.
◆ notifySubtype()
|
inline |
Get the notification sub-type.
◆ object()
template<class Object >
|
inline |
Get the target object pointer.
This is templated to provide cleaner code. Example:
MyObject* object = ms.object<MyObject>();
◆ operator==()
|
inline |
◆ remoteIp()
|
inline |
Get the remote IP address.
◆ remotePort()
|
inline |
Get the remote port number.
◆ repeat()
|
inline |
Get current repeat value.
◆ setRemote()
|
inline |
Set the remote address and port.
◆ setRepeat()
|
inline |
Set number of times to repeat message.
◆ setTarget()
|
inline |
Set the search target.
◆ shouldRepeat()
|
inline |
Check if message should be repeated and adjust counter.
◆ target()
|
inline |
Get the search target.
◆ type()
|
inline |
Get the message type.
Friends And Related Function Documentation
◆ MessageQueue
|
friend |
The documentation for this class was generated from the following file: