aturley / osc-pony

An Open Sound Control library for pony
MIT License
4 stars 1 forks source link

Example with both receive and send #8

Open jkleiser opened 8 years ago

jkleiser commented 8 years ago

If I want to make an example that e.g. sends a message right after every received message, would it be best to have separate classes InUDPClient and OutUDPClient, or would it be just as fine having a class UDPClient that does both receiving and sending? I guess receiving and sending should be on separate ports, e.g. 6447 and 6448.

aturley commented 8 years ago

From a technical standpoint, using the same socket for sending and receiving is allowed. So from there it's a design question, based on the needs of your application.