原諒我的無知
HTTP 回應代碼具有這種格式
1xx informational response – the request was received, continuing process
2xx successful – the request was successfully received, understood, and accepted
3xx redirection – further action needs to be taken in order to complete the request
4xx client error – the request contains bad syntax or cannot be fulfilled
5xx server error – the server failed to fulfil an apparently valid request
TCP 是否有類似或任何回應代碼系統,如果是,如何訪問它?
uj5u.com熱心網友回復:
TCP 是傳輸層協議,不理解應用程式級語意。這將由 HTTP 等應用層協議提供。
TCP本質上是一個unix套接字。因此,如果您正在尋找某種錯誤代碼,那么您的作業系統為您提供的所有與套接字相關的錯誤代碼都是您應該使用的。例如,Linux (POSIX) 提供 ENOENT、EIO 等。對于 Linux,請參閱:https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/tools/include/uapi/asm-generic/errno-base。 H
uj5u.com熱心網友回復:
TCP 是一個沒有內在語意的雙向位元組流。TCP 中沒有訊息的概念,因此也沒有請求或回應的概念 - 因此也沒有回應代碼。這種語意是由使用 TCP 作為傳輸層的應用程式協議添加的。
uj5u.com熱心網友回復:
https://docs.oracle.com/cd/E13203_01/tuxedo/msgq/msgq40a/mvscli/html/trouble.html
是和否
它發送像 ECONNREFUSED 這樣的套接字信號。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/449831.html
