20 #ifndef __stream_multicaster__StreamMulticaster__
21 #define __stream_multicaster__StreamMulticaster__
82 const std::string& mcGroup,
const std::string& mcPort,
83 const std::string& mcIfaceIp,
const std::string& connectPort,
84 const std::string& streamInPort,
const std::string& streamName,
148 static int main(
const std::string& cWonderAddr=
"",
149 const std::string& type=
"visual");
156 const std::string streamPath_;
161 int forwardMessage(
const char *path,
const char *types, lo_arg **argv,
162 int argc, lo_message msg);
164 int onStreamPingI(
const char *path,
const char *types,lo_arg **argv,
165 int argc, lo_message msg);
167 int onStreamConnect(
const char *path,
const char *types,lo_arg **argv,
168 int argc, lo_message msg);
170 int onUnknownConnectIn(
const char *path,
const char *types, lo_arg **argv,
171 int argc, lo_message msg);
virtual ~StreamMulticaster()
Destructor.
Definition: StreamMulticaster.cpp:60
std::string getMulticastPort() const
Returns the port of the multicast group.
Definition: StreamMulticaster.cpp:96
A StreamMulticaster forwards any OSC messages that are sent to its StreamInPort to a multicast group...
Definition: StreamMulticaster.h:59
A wrapper for Liblo's lo_address.
Definition: Address.h:35
std::string getStreamSourcePort() const
Returns the port of the stream source (i.e.
Definition: StreamMulticaster.cpp:86
std::string getMulticastGroup() const
Returns the IP of the multicast group.
Definition: StreamMulticaster.cpp:91
int getConnectPort() const
Returns the port where incoming connect messages may be sent to.
Definition: StreamMulticaster.cpp:71
std::string getStreamSourceHost() const
Returns the hostname of the stream source (i.e.
Definition: StreamMulticaster.cpp:81
A server thread with Liblo-style callback capabilities.
Definition: ServerThread.h:52
StreamMulticaster(const std::string &sourceHost, const std::string &sourcePort, const std::string &mcGroup, const std::string &mcPort, const std::string &mcIfaceIp, const std::string &connectPort, const std::string &streamInPort, const std::string &streamName, const uint8_t ttl=VISUAL_MC_TTL)
Constructor.
Definition: StreamMulticaster.cpp:24
int getStreamInPort() const
Returns the port where the incoming stream is recieved.
Definition: StreamMulticaster.cpp:76
static int main(const std::string &cWonderAddr="", const std::string &type="visual")
A function that starts a StreamMulticaster-instance.
Definition: StreamMulticaster.cpp:106
std::string getMulticastIface() const
Returns the interface identifier for the network interface used for sending to the multicast group...
Definition: StreamMulticaster.cpp:101