SFML community forums

Help => Network => Topic started by: gmagno on March 24, 2010, 04:52:44 pm

Title: [SOLVED] How to check if a port is already bound
Post by: gmagno on March 24, 2010, 04:52:44 pm
Hello,

This is my first post, and I'd like to say thank you for this nice library.

I can't say I looked all over the forum for posts related to my question, I apologize if this is already answered somewhere else.

So, is it possible to check if a certain port number is already bound to a UDP socket?

Thank you in advance
Title: [SOLVED] How to check if a port is already bound
Post by: Laurent on March 24, 2010, 07:50:39 pm
Binding a socket to a port that is not available should return an error.

If what you want is a free port, you can use 0 so that the system will choose for you.
Title: [SOLVED] How to check if a port is already bound
Post by: gmagno on March 24, 2010, 07:58:48 pm
[SOLVED]

Thank you.