Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you listen and respond to messages? #1

Closed
JeffreyBenjaminBrown opened this issue Oct 1, 2018 · 2 comments
Closed

How would you listen and respond to messages? #1

JeffreyBenjaminBrown opened this issue Oct 1, 2018 · 2 comments

Comments

@JeffreyBenjaminBrown
Copy link

I see from the readme how to send a message. Suppose, though, you also wanted to receive messages, and (say) print them to the screen as soon as they are received?

@miguel-negrao
Copy link

Most probably you would need to set up an UDP or TCP server which spits bytestrings to receive the OSC messages. Have a look here for an example. Depending on what your program is doing you probably want to put that server on a different thread as recvwill block.

@JeffreyBenjaminBrown
Copy link
Author

The front page of the Hackage documentation for Vivid-OSC now explains how to do this. That hasn't made it onto this Github repo but I assume it'll stay on Hackage so I'll close the issue anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants