同一台机器有影响!!!,如果你不是QUdpSocket::DefaultForPlatform(the default option for the current platform. On Unix and Mac OS X, this is equivalent to (DontShareAddress + ReuseAddressHint), and on Windows, its equivalent to ShareAddress.)
则一个端口只能被bind给一个udpsocket.
同一台机器有影响!!!,如果你不是QUdpSocket::DefaultForPlatform(the default option for the current platform. On Unix and Mac OS X, this is equivalent to (DontShareAddress + ReuseAddressHint), and on Windows, its equ……
[/Quote]
那是不是吧参数设置为:ShareAddress就可以了,我昨天试验了没用。
是不是要吧所有的Bind都换成ShareAddress呢,这个我到没试过