SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WonderOscServerSender.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 WONDEROSCSERVERSENDER_H_INCLUDED
21 #define WONDEROSCSERVERSENDER_H_INCLUDED
22 
23 
24 #include <iostream>
25 #include "WonderOscSender.h"
26 
27 namespace wonderlo {
28 
34 {
35 public:
36 
48  WonderOscServerSender(const std::string &host, const std::string &port,
49  lowrappers::ServerThread &server, int proto = LO_UDP);
50 
61  WonderOscServerSender(lo_address addr, lowrappers::ServerThread &server, bool isOwner = true);
62 
70 
74  virtual ~WonderOscServerSender();
75 
76 protected:
77 
89  void wonderSend(const MessageWithPath &msg);
90 
91 private:
92  WonderOscServerSender &operator= (const WonderOscServerSender other);
93 
94  lowrappers::ServerThread &server_;
95 };
96 
97 }
98 
99 #endif // WONDEROSCSERVERSENDER_H_INCLUDED
A lowrappers::Address implementing the wonder::OscSender interface.
Definition: WonderOscSender.h:33
void wonderSend(const MessageWithPath &msg)
Overriding VSSender::wonderSend, this changes the way OSC messages are sent from the various methods ...
Definition: WonderOscServerSender.cpp:48
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
virtual ~WonderOscServerSender()
Destructor.
Definition: WonderOscServerSender.cpp:44
A lowrappers::Message object that holds additional information about its destination OSC path...
Definition: MessageWithPath.h:31
WonderOscServerSender(const std::string &host, const std::string &port, lowrappers::ServerThread &server, int proto=LO_UDP)
Constructor.
Definition: WonderOscServerSender.cpp:24
A lowrappers::Address implementing the wonder::OscSender interface, sending its messages from a speci...
Definition: WonderOscServerSender.h:33