32 #include <lo/lo_cpp.h>
52 inline std::string UnpackLOMessage<std::string>(
const lo::Message& msg,
unsigned int n){
return std::string(&msg.argv()[n]->s); }
62 OSC(std::string address, std::string port);
64 void Send(std::string path);
65 void Send(std::string path, lo::Message);
66 void Send(std::string path, std::function<
void(lo::Message)> reply_action, lo::Message);
82 std::unique_ptr<lo::ServerThread> server;
88 std::recursive_mutex osc_mutex;
90 std::map< int, std::function< void(lo::Message) > > waiting_for_reply;
93 std::list< std::function<void()> > replies_to_call;
float UnpackLOMessage< float >(const lo::Message &msg, unsigned int n)
Definition: OSC.hpp:48
OSC(std::string address, std::string port)
int UnpackLOMessage< int >(const lo::Message &msg, unsigned int n)
Definition: OSC.hpp:46
void AddMethodHandler(std::string path, std::function< void(lo::Message)>)
Definition: Alertable.hpp:26
T UnpackLOMessage(const lo::Message &msg, unsigned int n)
void Send(std::string path)
OSCException(std::string t)
Definition: OSC.hpp:39
double UnpackLOMessage< double >(const lo::Message &msg, unsigned int n)
Definition: OSC.hpp:50
Definition: Exception.hpp:29