MessageSpec.h
Go to the documentation of this file.
String toString(SSDP::NotifySubtype subtype)
A class to make it easier to handle and pass around IP addresses.
Definition: IpAddress.h:45
Defines the information used to create an outgoing message.
Definition: MessageSpec.h:75
IpAddress remoteIp() const
Get the remote IP address.
Definition: MessageSpec.h:120
void setRepeat(uint8_t count)
Set number of times to repeat message.
Definition: MessageSpec.h:197
MessageSpec(const MessageSpec &ms, SearchMatch match, void *object)
Construct a new message spec for a specific match type.
Definition: MessageSpec.h:103
uint16_t remotePort() const
Get the remote port number.
Definition: MessageSpec.h:128
void setRemote(IpAddress address, uint16_t port)
Set the remote address and port.
Definition: MessageSpec.h:188
uint8_t repeat() const
Get current repeat value.
Definition: MessageSpec.h:205
void setTarget(SearchTarget target)
Set the search target.
Definition: MessageSpec.h:180
MessageSpec(MessageType type, SearchTarget target, void *object=nullptr)
Definition: MessageSpec.h:83
Object * object() const
Get the target object pointer.
Definition: MessageSpec.h:140
bool operator==(const MessageSpec &rhs) const
Definition: MessageSpec.h:111
NotifySubtype notifySubtype() const
Get the notification sub-type.
Definition: MessageSpec.h:156
SearchTarget target() const
Get the search target.
Definition: MessageSpec.h:172
bool shouldRepeat()
Check if message should be repeated and adjust counter.
Definition: MessageSpec.h:213
SearchMatch match() const
Get the search match type.
Definition: MessageSpec.h:164
MessageSpec(NotifySubtype nts, SearchTarget target, void *object=nullptr)
Definition: MessageSpec.h:91
Definition: SSDP/src/include/Network/SSDP/Message.h:32
NotifySubtype getNotifySubtype(const char *subtype)
@ OTHER
XX(type, str)
SearchMatch
Determines the kind of match obtained when scanning incoming packets.
Definition: MessageSpec.h:61