ofxOSC send and receive

Hi

I am trying to build a multiuser application where many “slaves” will send OSC messages to a “master”. This master will compile all messages and send them back to each “slave”. It is a structure similar to that of a chat room.

Can OSC do this? I guess need to create a sender instance in the master for every slave, and the slave list is undeterminate (anyone can “log in” to this application although no credentials are actually exchanged for now) but I am unsure as to how to get IP data from them via OSC.

Any help will be appreciated.

Thanks

  • mga

BTW: it is not a chat room what I’m trying to do but it’s the easiest way of explaining it.

Why you need the IP data for? If you want to know to which one send the message back you can tell them to send you their IP…

Also in the ofxOscMessage there’s a method for that, it is ofxOscMessage.getRemoteIp()

As I see it is possible :slight_smile:

Thanks a lot. Hadn’t found that method.

  • mga