Skip to content

Commit 01bd8b1

Browse files
authored
ofxOsc: no setup on default (#7986)
1 parent b1c2ffd commit 01bd8b1

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

addons/ofxOsc/src/ofxOscReceiver.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ struct ofxOscReceiverSettings {
2525
/// \brief OSC message receiver which listens on a network port
2626
class ofxOscReceiver : public osc::OscPacketListener {
2727
public:
28-
ofxOscReceiver(int port = 7970) {
28+
ofxOscReceiver() = default;
29+
30+
ofxOscReceiver(int port) {
2931
setup(port);
3032
};
3133
ofxOscReceiver(std::string host, int port) {

addons/ofxOsc/src/ofxOscSender.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ struct ofxOscSenderSettings {
2222
/// \brief OSC message sender which sends to a specific host & port
2323
class ofxOscSender {
2424
public:
25-
ofxOscSender(std::string host = "127.0.0.1", int port = 7970, bool silent = false) {
25+
ofxOscSender() = default;
26+
ofxOscSender(std::string host, int port, bool silent = false) {
2627
setup(host, port, silent);
2728
}
2829
~ofxOscSender();

0 commit comments

Comments
 (0)