Quote Originally Posted by yvan40 View Post
perfect!
Qt Code:
  1. sock->bind(2152); /// \TODO need generate random client TID, and check if port available (select another if not) ; see RFC1350
To copy to clipboard, switch view to plain text mode 
No need to worry about available ports if you let bind() handle it for you like this:
Qt Code:
  1. sock->bind();
To copy to clipboard, switch view to plain text mode