I want the socket port chosen by OS, not by my define.
My code:
socketId = NetworkTransport.AddHost (ht);
How can i get the Port chosen by OS? THX
Ref:
Parameters
port - Bind to specific port, if 0 is selected the port will chosen by OS.
My code:
socketId = NetworkTransport.AddHost (ht);
How can i get the Port chosen by OS? THX
Ref:
Parameters
port - Bind to specific port, if 0 is selected the port will chosen by OS.