socket绑定错误时 会返回对应的错误码
SocketError QAbstractSocket::error () const
Returns the type of error that last occurred.
See also state() and errorString().
其中SocketError对应的值里面有
QAbstractSocket::AddressInUseError
The address specified to QUdpSocket::bind() is already in use and was set to be exclusive.