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

Answer from server #50

Open
masseelch opened this issue Apr 14, 2021 · 3 comments
Open

Answer from server #50

masseelch opened this issue Apr 14, 2021 · 3 comments

Comments

@masseelch
Copy link

masseelch commented Apr 14, 2021

I have an remote OSC-Server which cends state information back to a client. I cannot seem to find a way to listen for a reply for a msg sent by a client.

oscC := osc.NewClient("127.0.0.1", 9000)
if err := oscC.Send(osc.NewMessage("/system/server-info")); err != nil {
    fmt.Println(err)
}

// How to receive the servers reply?
@hypebeast
Copy link
Owner

You need to create your own OSC Server which listens for incoming OSC messages.

You can find an example here: https://github.com/hypebeast/go-osc/blob/master/examples/basic_server/basic_server.go

@masseelch
Copy link
Author

masseelch commented Apr 14, 2021

That is what I did try. However oscC.Send() seems to open a new port on every message and therefore the response does not reach the port I am listening on with the server. (The server I send the messages to answers and the same port the message came from.)

@gpayer
Copy link

gpayer commented May 2, 2021

PR #51 adds this missing feature.

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

3 participants