精英盒子 -> 零毫秒 -> 求翻译enum QAbstractSocket::SocketError [打印本页]

jybox 2011-10-04 21:44

求翻译enum QAbstractSocket::SocketError

ConstantValueDescription
QAbstractSocket::ConnectionRefusedError0The connection was refused by the peer (or timed out).
QAbstractSocket::RemoteHostClosedError1The remote host closed the connection. Note that the client socket (i.e., this socket) will be closed after the remote close notification has been sent.
QAbstractSocket::HostNotFoundError2The host address was not found.
QAbstractSocket::SocketAccessError3The socket operation failed because the application lacked the required privileges.
QAbstractSocket::SocketResourceError4The local system ran out of resources (e.g., too many sockets).
QAbstractSocket::SocketTimeoutError5The socket operation timed out.
QAbstractSocket::DatagramTooLargeError6The datagram was larger than the operating system's limit (which can be as low as 8192 bytes).
QAbstractSocket::NetworkError7An error occurred with the network (e.g., the network cable was accidentally plugged out).
QAbstractSocket::AddressInUseError8The address specified to QUdpSocket::bind() is already in use and was set to be exclusive.
QAbstractSocket::SocketAddressNotAvailableError9The address specified to QUdpSocket::bind() does not belong to the host.
QAbstractSocket::UnsupportedSocketOperationError10The requested socket operation is not supported by the local operating system (e.g., lack of IPv6 support).
QAbstractSocket::ProxyAuthenticationRequiredError12The socket is using a proxy, and the proxy requires authentication.
QAbstractSocket::SslHandshakeFailedError13The SSL/TLS handshake failed, so the connection was closed (only used in QSslSocket)
QAbstractSocket::UnfinishedSocketOperationError11Used by QAbstractSocketEngine only, The last operation attempted has not finished yet (still in progress in the background).
QAbstractSocket::ProxyConnectionRefusedError14Could not contact the proxy server because the connection to that server was denied
QAbstractSocket::ProxyConnectionClosedError15The connection to the proxy server was closed unexpectedly (before the connection to the final peer was established)
QAbstractSocket::ProxyConnectionTimeoutError16The connection to the proxy server timed out or the proxy server stopped responding in the authentication phase.
QAbstractSocket::ProxyNotFoundError17The proxy address set with setProxy() (or the application proxy) was not found.
QAbstractSocket::ProxyProtocolError18The connection negotiation with the proxy server because the response from the proxy server could not be understood.
QAbstractSocket::UnknownSocketError-1An unidentified error occurred.


pcliker 2011-10-05 20:15
恒定    价值    说明
QAbstractSocket::ConnectionRefusedError    0    同行(或超时)连接被拒绝。
QAbstractSocket::RemoteHostClosedError    1    远程主机关闭了连接。请注意,客户端套接字(即,这个插座)将关闭后远程关闭通知已发送。
QAbstractSocket::HostNotFoundError    2    主机地址没有被发现。
QAbstractSocket::SocketAccessError    3    套接字操作失败,因为应用程序缺乏所需的权限。
QAbstractSocket::SocketResourceError    4    跑出本地系统资源(例如,太多插座)。
QAbstractSocket::SocketTimeoutError    5    套接字操作超时。
QAbstractSocket::DatagramTooLargeError    6    数据报大于操作系统的限制(可高达8192个字节的低)。
QAbstractSocket::NetworkError    7    网络发生错误(例如,网络电缆被意外拔出)。
QAbstractSocket::AddressInUseError    8    指定的地址QUdpSocket:绑定()已在使用中,被确定为独家。
QAbstractSocket::SocketAddressNotAvailableError    9    指定的地址QUdpSocket:绑定()不属于主机。
QAbstractSocket::UnsupportedSocketOperationError    10    本地操作系统(例如,缺乏对IPv6的支持)不支持请求的套接字操作。
QAbstractSocket::ProxyAuthenticationRequiredError    12    插座是使用代理,代理服务器需要身份验证。
QAbstractSocket::SslHandshakeFailedError    13    SSL / TLS握手失败,所以连接被关闭(仅适用于使用QSslSocket)
QAbstractSocket::UnfinishedSocketOperationError    11    QAbstractSocketEngine只使用,试图最后一次操作没有结束(仍然在后台的进展)。
QAbstractSocket::ProxyConnectionRefusedError    14    无法联系的代理服务器,因为该服务器连接被拒绝
QAbstractSocket::ProxyConnectionClosedError    15    代理服务器的连接被意外关闭(之前连接到最后的同行成立)
QAbstractSocket::ProxyConnectionTimeoutError    16    代理服务器的连接超时或代理服务器停止响应验证阶段。
QAbstractSocket::ProxyNotFoundError    17    设置与setProxy()(或应用程序代理)代理服务器地址没有被发现。
QAbstractSocket::ProxyProtocolError    18    与代理服务器连接协商,因为从代理服务器的响应无法理解。
QAbstractSocket::UnknownSocketError    -1    一位不愿透露姓名的错误发生。

来自谷歌翻译,有点乱……

jybox 2011-10-05 20:16
pcliker:恒定    价值    说明
QAbstractSocket::ConnectionRefusedError    0    同行(或超时)连接被拒绝。
QAbstractSocket::RemoteHostClosedError    .. (2011-10-05 20:15) 

我也知道google翻译,我是要找人给人工翻译一下(借助google)

jybox 2011-10-07 03:07
  1. //对QAbstractSocket::SocketError枚举的翻译
    //qthelp://com.trolltech.qt.472/qdoc/qabstractsocket.html#SocketError-enum
    inline QString SocketError_CN(int i)
    {
        const QString SocketError_CN_ex[19]={"未定义的错误",
                                             "连接被对方拒绝或超时",
                                             "远程主机关闭了连接,连接正在关闭",
                                             "主机地址没有被找到",
                                             "没有权限来执行这个操作",
                                             "本地端口资源不足",
                                             "操作超时",
                                             "报文长度超过操作系统的限制",
                                             "网络发生错误(例如网线被断开)",
                                             "该地址(端口)已经被使用",
                                             "这个地址不属于该主机",
                                             "请求的操作不被操作系统支持(例如IPv6)",
                                             "该连接使用了一个需要认证的代理",
                                             "安全连接握手失败,连接被关闭",
                                             "上一个操作仍在后台进行中",
                                             "因为被拒绝,无法连接代理服务器",
                                             "到代理服务器的连接被意外中断(连接已经成功)",
                                             "在连接到代理服务器进行认证时服务器超时或停止相应",
                                             "没有发现代理地址",
                                             "正在与代理服务器进行协商,因为对方无法解析"};
        return SocketError_CN_ex[i+1];
    }



whtsky 2011-10-07 12:12
与代理服务器进行协商

jybox 2011-10-07 12:31
whtsky:与代理服务器进行协商 [表情]  (2011-10-07 12:12) 

我也不是很清楚,现在只能强译。以后明白这些错误在什么时候发生之后,就能描述的好一点了




Powered by phpwind v8.7 Code ©2003-2011 phpwind
Time 0.057458 second(s),query:5 Gzip enabled