@@ -31,15 +31,24 @@ class ofxOscReceiver : public osc::OscPacketListener {
3131 // / for operator= and copy constructor
3232 ofxOscReceiver& copy (const ofxOscReceiver &other);
3333
34- // / set up the receiver with the port (and specific host/ip) to listen for messages on
35- // / and start listening
36- // /
37- // / multiple receivers can share the same port if port reuse is
38- // / enabled (true by default)
39- // /
40- // / \return true if listening started
41- bool setup (int port, std::string host = " 0.0.0.0" );
42-
34+ // / set up the receiver to listen for messages through any hosts on the given port
35+ // / and start listening
36+ // /
37+ // / multiple receivers can share the same port if port reuse is
38+ // / enabled (true by default)
39+ // /
40+ // / \return true if listening started
41+ bool setup (int port) { return setup ( " 0.0.0.0" , port); }
42+
43+ // / set up the receiver to listen for messages on the specific host/ip
44+ // / and start listening
45+ // /
46+ // / multiple receivers can share the same port if port reuse is
47+ // / enabled (true by default)
48+ // /
49+ // / \return true if listening started
50+ bool setup (std::string host, int port);
51+
4352 // / set up the receiver with the given settings
4453 // /
4554 // / starts listening if start is true (true by default)
0 commit comments