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

Server doesn't receive messages #67

Open
plaukiu opened this issue Nov 27, 2022 · 0 comments
Open

Server doesn't receive messages #67

plaukiu opened this issue Nov 27, 2022 · 0 comments

Comments

@plaukiu
Copy link

plaukiu commented Nov 27, 2022

class Server: OSCServerDelegate {
    let server = OSCServer(address: "localhost", port: 9999) // doesn't matter if I enter "localhost" or ""
    func didReceive(_ message: OSCMessage) {
        print("Received message: \(message)")
    }
    func didReceive(_ data: Data) {
        print("Received data: \(data)")
    }

    func didReceive(_ bundle: OSCBundle) {
        print("Received bundle: \(bundle)")
    }
}
let server = Server()
let client = OSCClient(address: "localhost", port: requestDestinationPort)
client.send(request) // receiver responds with message through localhost:9999

Server does not receive the message.
Here's some console.

Server init: localhost, 9999, running: true
Client init: localhost, 12002
Sent OSCMessage [Address</serialosc/list> String<localhost> Int<9999>]

External OSC monitor listening at localhost:9999 does receive the message.

Debugger:
yudpsocket.c:76

int len=(int)recvfrom(socket_fd, outdata, expted_len, 0, (struct sockaddr *)&cli_addr, &clilen);

execution drops out somehow

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

1 participant