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

Can't find a way to check if OscP5 is actually connected #4

Open
MatteoFantasy opened this issue Feb 17, 2016 · 2 comments
Open

Can't find a way to check if OscP5 is actually connected #4

MatteoFantasy opened this issue Feb 17, 2016 · 2 comments

Comments

@MatteoFantasy
Copy link

Hello,
I'm trying to find a way to know if OscP5 managed to connect to the provided listening port (meaning that if the port has already been claimed by another application and I won't receive anything I want to know it).
The lib doesn't output any error in that case and I couldn't find any method/variable containing this information.
Did I miss something or is this feature absent from the lib ?
Thanks

@sojamo
Copy link
Owner

sojamo commented Feb 18, 2016

Hi, programmatically it is not possible to check if a Network message listener (TCP or UDP) was able to listen for incoming messages. Though this would make sense to add. When an OscP5 instance is created, a message is printed into the console saying

INFO: starting server, listening on port 12000 (0.0.0.0:12000 yourMachineName/192.168.1.2:12000)

for successfully opening a listening port, or

INFO: Couldn't start UDP server on port 12000 java.net.BindException: Address already in use Is there another application using the same port?

if the port is in use.

@trackme518
Copy link

Fixed in my fork: https://github.com/trackme518/oscp5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants