阅读背景:

我如何获得免费套接字端口? C ++

来源:互联网 

I am writing a UDP test client/server and i want to get it through firewall. Supposedly all i need to do is have both sides send to the correct IP and server. Getting an IP is not a problem but how do i have the client pick a random free port and report it to the user? I eventually would want it to connect to a matchmaker server but right now i need a simple working prototype and i would like to cout the port number so my friend/tester can send me the # via IM so we can test.I am writing a UDP test client/server and i wan




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: