QT 中 Socket->connectToHost()将会把 Socket 绑定什么端口
Tofloor
poster avatar
空山棋盘
deepin
2014-06-10 07:51
Author
QT中,client端Socket->connectToHost()将会把Socket绑定什么端口?
如何获得这个Socket被绑定(占用)的端口?
在server端可以得到它被绑定的端口,在client端怎么得到自己被绑定到哪个端口?
哪位大神给指点下吧。多谢!
Reply Favorite View the author
All Replies
coldlook
deepin
2014-06-10 17:23
#1
端口号不是自己设置的吗?
Reply View the author
tsuibin
deepin
2014-09-12 18:17
#2
你需要指定端口号
Reply View the author