SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WonderOscServerSenderThread.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Martin Hansen
3  *
4  * This file is part of SPAOP (Spatial Audio Object Positioner).
5  *
6  * SPAOP is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * SPAOP is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SPAOP. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef WONDEROSCSERVERSENDERTHREAD_H_INCLUDED
21 #define WONDEROSCSERVERSENDERTHREAD_H_INCLUDED
22 
23 #include "WonderOscSenderThread.h"
24 
25 namespace wonderlo {
26 
32 {
33 public:
34 
46  WonderOscServerSenderThread(const std::string &host, const std::string &port,
47  lowrappers::ServerThread &server, int proto = LO_UDP);
48 
51 
52 protected:
59  void sendMethod(const MessageWithPath& msg);
60 
61 private:
62  lowrappers::ServerThread& server_;
63 };
64 
65 }
66 
67 
68 #endif // WONDEROSCSERVERSENDERTHREAD_H_INCLUDED
virtual ~WonderOscServerSenderThread()
Destructor.
Definition: WonderOscServerSenderThread.cpp:33
void sendMethod(const MessageWithPath &msg)
Overriding WonderOscSenderThread::sendMethod, this changes the way how the sending thread sends out t...
Definition: WonderOscServerSenderThread.cpp:37
A WonderOscSenderThread thread, sending its messages from a specified lowrappers::ServerThread's port...
Definition: WonderOscServerSenderThread.h:31
A thread implementing the wonder::OscSenderThread interface.
Definition: WonderOscSenderThread.h:51
A server thread with Liblo-style callback capabilities.
Definition: ServerThread.h:52
std::string port() const
Returns the destination port (or service name) where this OscSender will send to. ...
Definition: WonderOscSender.cpp:59
A lowrappers::Message object that holds additional information about its destination OSC path...
Definition: MessageWithPath.h:31
WonderOscServerSenderThread(const std::string &host, const std::string &port, lowrappers::ServerThread &server, int proto=LO_UDP)
Constructor.
Definition: WonderOscServerSenderThread.cpp:24