gpt4 book ai didi

protocols - 与无状态协议(protocol)相反?

转载 作者:行者123 更新时间:2023-12-02 19:32:28 26 4
gpt4 key购买 nike

我想知道“无状态协议(protocol)”的反面是什么。例如,鉴于 HTTP 是无状态的,那么像 FTP 这样的协议(protocol)是相反的/维护状态的协议(protocol),我的假设是否正确?

谢谢。

最佳答案

有无状态协议(protocol)(如 http)和有状态协议(protocol)(如 ftp、telnet...)。

根据wikipedia :

In computing, a stateless protocol is a communications protocol that treats each request as an independent transaction that is unrelated to any previous request so that the communication consists of independent pairs of requests and responses. A stateless protocol does not require the server to retain session information or status about each communications partner for the duration of multiple requests.

根据这个article - 有状态协议(protocol):

The client connects to the server, conducts a series of operations via that conneciton, and then disconnects.Then server can associate all of the requests together and knows that thy all came from the same user.

关于protocols - 与无状态协议(protocol)相反?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5765638/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com