20 #ifndef ADDRESS_H_INCLUDED
21 #define ADDRESS_H_INCLUDED
30 namespace lowrappers {
50 Address(
const std::string &host,
const std::string &
port,
62 Address(lo_address addr,
bool isOwner =
true);
91 bool setAddress(
const std::string &newHost,
const std::string &newPort);
126 std::string
url()
const;
138 std::string
port()
const;
149 int send(
const std::string &path,
const std::string types, ...)
const;
158 int send(
const std::string &path,
const Message& msg)
const;
167 int send(
const std::string &path,
const lo_message msg)
const;
181 int sendVAList(
const std::string &path,
const std::string &types, va_list args)
const;
195 const std::string types, ...)
const;
219 const lo_message msg)
const;
235 const std::string &types, va_list args)
const;
241 mutable std::mutex mutex_;
A wrapper of Liblo's lo_message.
Definition: Message.h:33
std::string getIface() const
Returns the name of the network interface that will be used for sending to this address.
Definition: Address.cpp:92
std::string url() const
An URL describing this address.
Definition: Address.cpp:104
virtual ~Address()
Destructor.
Definition: Address.cpp:42
int sendVAList(const std::string &path, const std::string &types, va_list args) const
Sends a OSC formatted message to this address.
Definition: Address.cpp:145
int getTtl() const
Returns the time-to-live value for this Address.
Definition: Address.cpp:80
std::string hostname() const
The hostname of this adress.
Definition: Address.cpp:113
int sendFrom(const ServerThread &from, const std::string &path, const std::string types,...) const
Sends a OSC formatted message to this address, from the same socket as the specified server...
Definition: Address.cpp:176
int send(const std::string &path, const std::string types,...) const
Sends a OSC formatted message to this address.
Definition: Address.cpp:133
A wrapper for Liblo's lo_address.
Definition: Address.h:35
void setTtl(uint8_t ttl)
Sets the time-to-live value for this Address.
Definition: Address.cpp:86
bool setAddress(const std::string &newHost, const std::string &newPort)
Updates this Address to send to a new destination.
Definition: Address.cpp:58
void setIfaceByIp(const std::string &ip)
Sets the network interface to use for sending to this address.
Definition: Address.cpp:98
Address(const std::string &host, const std::string &port, int proto=LO_UDP)
Constructor.
Definition: Address.cpp:24
A server thread with Liblo-style callback capabilities.
Definition: ServerThread.h:52
int sendVAListFrom(const ServerThread &from, const std::string &path, const std::string &types, va_list args) const
Sends a OSC formatted message to this address, from the same socket that a specified ServerThread is ...
Definition: Address.cpp:201
std::string port() const
The port/service name of this adress.
Definition: Address.cpp:123