Skip to content

Sending and receiving on the same port #40

@Show-vars

Description

@Show-vars

I do not understand why the maintainer removed the ability to use one local port for receiving and sending simultaneously. This problem has already occurred before (#5 and #17) but after big code updates this problem appeared again. This imposes big restrictions on the using of this library.

The main problem is a splitting OSCPort into two independent classes OSCPortIn and OSCPortOut that uses different instances of DatagramChannel. Using socket option SO_REUSEADDR seems not to solve this issue.

Originally I was trying to write a small app that communicates with my Behringer X32 mixer. That one always send response to the same port from which requests are sent.

I had to completely rewrite these main classes. Actually, I could open the pull request but since my changes greatly affect the core of the library, I decided to limit only with new issue.

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