| Constant | Value | Description |
|---|---|---|
QAbstractSocket::UnconnectedState | 0 | The socket is not connected. |
QAbstractSocket::HostLookupState | 1 | The socket is performing a host name lookup. |
QAbstractSocket::ConnectingState | 2 | The socket has started establishing a connection. |
QAbstractSocket::ConnectedState | 3 | A connection is established. |
QAbstractSocket::BoundState | 4 | The socket is bound to an address and port. |
QAbstractSocket::ClosingState | 6 | The socket is about to close (data may still be waiting to be written). |
QAbstractSocket::ListeningState | 5 | For internal use only. |
QWebSocket连接状态码
最新推荐文章于 2024-08-07 17:33:22 发布
本文详细介绍了QAbstractSocket中各种状态的含义及应用场景,包括未连接状态、主机查找状态、连接建立状态等。
3155

被折叠的 条评论
为什么被折叠?



