Skip to content

OSC Protocol & Ports Clarification #27

@PusherLabs

Description

@PusherLabs

Noob questions inbound! I think I have things set up correct, but I'm seeing no return traffic. Here's the situation...

First ?, I see the the protocol code at the top of OSCManager.h is all commented out. VVMIDI doesn't work without the protocol in place, so I'm double checking on that it's needed or not for VVOSC?

I have a pretty normal situation where I need to send data over port X and then listen for responses on that same port coming from the destination hardware:
sourceip:sourceport <---> destip:destport

The hardware automatically responds to the same port I used to send the data. So when I create the INPort it needs to match the port the OUTPort uses to send data FROM. My question is, when I am SENDING a message how do I specify the port the message gets sent FROM, i.e. the "sourceport" above?

oscManager = [[OSCManager alloc] init];
[oscManager setDelegate:self];
oscInPort = [oscManager createNewInputForPort:sourcePort];
oscOutPort = [oscManager createNewOutputToAddress:destIP atPort:destPort];
OSCMessage *msg = nil;
msg = [OSCMessage createWithAddress:@"/some/address"];
[msg addFloat:12.34];
[oscOutPort sendThisMessage:msg];

This gets the message to the hardware successfully, but nothing is being received back from the hardware. I can also see that my program opens another random UDP port each time I run the above.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions