• 4325阅读
  • 0回复

为什么udpSocket->peerAddress()总是空的? [复制链接]

上一主题 下一主题
离线iiiyyyhhhsss
 

只看楼主 倒序阅读 楼主  发表于: 2009-10-22
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —
根据manul说

Returns the address of the connected peer if the socket is in ConnectedState; otherwise returns QHostAddress::Null.

就是说只有处于连接状态udpSocket的peerAdrees才有内容

那么,什么时候才是socket处于连接状态?什么时候udpSocket断开连接状态?
快速回复
限100 字节
 
上一个 下一个