Hey there,
I currently need to send OSC messages from Bela to several different ports (and/or IPs) at the same time.
However, I ran into an issue when trying to create a vector of the OscSender class:
call to implicitly-deleted copy constructor of 'OscSender'
For further reference:
The vector was created in a class definition, with its initialization of the separate instances only happening during the constructor calls in the setup procedure. Here some dummy code that hopefully makes my structure more clear:
class OSC{
private:
std::vector<OscSender> oscSenderAr_;
public:
void setup(int port, std::string(IPadr), int portNum){
for(int i = 0; i < portNum_; i++){
oscSenderAr_.push_back(OscSender(port_ + i, ipAdr_));
}
}
}
Eventually, I just need to be able to send OSC to different ports/IPs and would love to stay flexible by not hard coding the number of OscSender objects I need. (I haven't been in the C++ game for very long, excuse me perhaps missing obvious solutions).
Any ideas on how to get there would be much appreciated! Thanks a lot!