Windows錯誤碼查詢 2個重要的檔案!

來源:互聯網
上載者:User

ntstatus.h 和 winnt.h

針對SOCKET的錯誤,如果在msdn中查詢不到錯誤碼,那麼這2個檔案應該可以解決你的問題。

本人至今 都可查到。

 

當然一般性的錯誤碼 在msdn中即可查看。

我貼上部分,說明。

 

 

 

socket的錯誤碼總結(Windows和unix) 收藏
先統計一下windows下的錯誤碼

在主機上查詢,像windows系統,直接在命令列輸入:net helpmsg 1xxx即可。

出現網路聯機錯誤Socket error #11001

表示您的電腦無法連上伺服器,請檢查您的Proxy設定以及Proxy相關帳號,或暫時取消您防毒軟體的「個人防火牆」。

· 出現網路聯機錯誤Socket error #11004

應該是網路聯機狀態問題,請使用者檢查網路聯機是否正常。

· 出現網路聯機錯誤Socket error #10060 Connection Timed Out

表示您與伺服器發生聯機逾時錯誤,請檢查您的Proxy相關設定,以及Proxy Server是否已將SSL 443 port開啟。

· 出現網路聯機錯誤Socket error #10061

表示伺服器忙碌中無法與您建立聯機,請稍後再試。

· 出現網路聯機錯誤Socket error #10022

請您上網更新Windows作業系統組件。Windows NT version 4.0的使用者請下載安裝 Service Pack 5(含)以上。

· 出現Internal Server Error

主機忙碌中,請您稍後再試。

· 上傳時出現Socket error #10022 Invalid argument.

請上網更新Windows作業系統組件(windows update)。Windows NT version 4.0的使用者請下載安裝 Service Pack 5(含)以上。

· 上傳時出現socket error #10054 Connection reset by peer

原因為串連被防火檣或proxy中斷"或因為您有安裝ip分享器請將ip分享器先拿掉,直接將電腦接adsl的線路後重新上傳。

· 上傳時出現socket error #10057 Connection reset by peer

原因為系統檔案被破壞,請進行系統的殺毒,關閉殺毒軟體、防火牆。

INDY9開發程式中反饋的Socket Errors

下面是Socket Error的錯誤碼和描述:

Socket error 0 - Directly send error

Socket error 10004 - Interrupted function call

Socket error 10013 - Permission denied

Socket error 10014 - Bad address

Socket error 10022 - Invalid argument

Socket error 10024 - Too many open files

Socket error 10035 - Resource temporarily unavailable

Socket error 10036 - Operation now in progress

Socket error 10037 - Operation already in progress

Socket error 10038 - Socket operation on non-socket

Socket error 10039 - Destination address required

Socket error 10040 - Message too long

Socket error 10041 - Protocol wrong type for socket

Socket error 10042 - Bad protocol option

Socket error 10043 - Protocol not supported

Socket error 10044 - Socket type not supported

Socket error 10045 - Operation not supported

Socket error 10046 - Protocol family not supported

Socket error 10047 - Address family not supported by protocol family

Socket error 10048 - Address already in use

Socket error 10049 - Cannot assign requested address

Socket error 10050 - Network is down

Socket error 10051 - Network is unreachable

Socket error 10052 - Network dropped connection on reset

Socket error 10053 - Software caused connection abort

Socket error 10054 - Connection reset by peer

Socket error 10055 - No buffer space available

Socket error 10056 - Socket is already connected

Socket error 10057 - Socket is not connected

Socket error 10058 - Cannot send after socket shutdown

Socket error 10060 - Connection timed out

Socket error 10061 - Connection refused

Socket error 10064 - Host is down

Socket error 10065 - No route to host

Socket error 10067 - Too many processes

Socket error 10091 - Network subsystem is unavailable

Socket error 10092 - WINSOCK.DLL version out of range

Socket error 10093 - Successful WSAStartup not yet performed

Socket error 10094 - Graceful shutdown in progress

Socket error 11001 - Host not found

Socket error 11002 - Non-authoritative host not found

Socket error 11003 - This is a non-recoverable error

Socket error 11004 - Valid name, no data record of requested type

 

WSAEADDRINUSE (10048) Address already in use

WSAECONNABORTED (10053) Software caused connection abort

WSAECONNREFUSED (10061) Connection refused

WSAECONNRESET (10054) Connection reset by peer

WSAEDESTADDRREQ (10039) Destination address required

WSAEHOSTUNREACH (10065) No route to host

WSAEMFILE (10024) Too many open files

WSAENETDOWN (10050) Network is down

WSAENETRESET (10052) Network dropped connection

WSAENOBUFS (10055) No buffer space available

WSAENETUNREACH (10051) Network is unreachable

WSAETIMEDOUT (10060) Connection timed out

WSAHOST_NOT_FOUND (11001) Host not found

WSASYSNOTREADY (10091) Network sub-system is unavailable

WSANOTINITIALISED (10093) WSAStartup() not performed

WSANO_DATA (11004) Valid name, no data of that type

WSANO_RECOVERY (11003) Non-recoverable query error

WSATRY_AGAIN (11002) Non-authoritative host found

WSAVERNOTSUPPORTED (10092) Wrong WinSock DLL version

 

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.