-
Notifications
You must be signed in to change notification settings - Fork 5
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 do I receive data from server? #24
Comments
The mentioned example consumes packets received from server in let bootstrap = DatagramBootstrap(group: group)
.channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
.channelInitializer { channel in
channel.pipeline.addHandlers([OSCPacketReader(), OSCDebugHandler()])
} sets up the pipeline where the last chain |
Thanks for replying! What port is it listening on? |
According to below network configuration let channel = try bootstrap.bind(host: "127.0.0.1", port: 57150).wait()
let remoteAddr = try SocketAddress(ipAddress: "127.0.0.1", port: 57110) the client is expecting responses on port 57150. |
Thanks, I'll keep looking into this. |
I got it to work. I changed all references to: |
Awesome! |
Thanks for discovering the issue! I fixed it (see #25) |
The SuperColliderClient example shows
// get and print out frequency number from SuperCollider let getFrqMessage = OSCMessage(address: "/s_get", args: [synthID, "freq"]) try channel.writeAndFlush(getFrqMessage, target: remoteAddr)
I don't see how to get and process the response. How is it done?
The text was updated successfully, but these errors were encountered: