NAP
Overview
Manual
Classes
Namespaces
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
nap
system_modules
naposc
src
oscreceivingsocket.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
#include <ip/UdpSocket.h>
8
#include <osc/OscPacketListener.h>
9
10
namespace
nap
11
{
15
class
OSCReceivingSocket
:
public
UdpSocket
16
{
17
public
:
23
OSCReceivingSocket
(
int
port,
bool
allowReuse);
24
30
OSCReceivingSocket
(
const
IpEndpointName& localEndpoint,
bool
allowReuse);
31
35
~OSCReceivingSocket
();
36
41
void
setListener
(osc::OscPacketListener* listener);
42
46
void
run
();
47
51
void
stop
();
52
53
private
:
54
SocketReceiveMultiplexer mMultiplexer;
// Holds the port and allows for setting the listener
55
PacketListener* mListener =
nullptr
;
// The listener that handles the incoming OSC messages
56
};
57
}
nap::OSCReceivingSocket::run
void run()
nap::OSCReceivingSocket
Definition:
oscreceivingsocket.h:15
nap::OSCReceivingSocket::~OSCReceivingSocket
~OSCReceivingSocket()
nap::OSCReceivingSocket::stop
void stop()
nap::OSCReceivingSocket::OSCReceivingSocket
OSCReceivingSocket(int port, bool allowReuse)
nap
Definition:
templateapp.h:17
nap::OSCReceivingSocket::setListener
void setListener(osc::OscPacketListener *listener)
Generated by doxygen