与无状态协议相反?
我想知道“无状态协议”的反面是什么。例如,鉴于 HTTP 是无状态的,那么像 FTP 这样的协议是相反的/维护状态的协议,我的假设是否正确?
谢谢。
I would like to know what the opposite of a 'stateless protocol' is. Am I correct in assuming that, seeing as HTTP is stateless, for example, then a protocol such as FTP is the opposite/one that maintains state?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有无状态协议(如 http)和有状态协议(如 ftp、telnet...)。
根据维基百科:
根据这篇文章 - 有状态协议:
There are stateless protocols (like http) and stateful protocols (like ftp, telnet, ...).
According to wikipedia :
According to this article - Stateful protocol :
有状态协议是一种旨在在每个步骤中保持状态的协议,这意味着有状态服务器知道以前的请求。
无状态协议不保留状态。每个请求都是一个新请求。
状态可以构建到无状态协议中。
例如HTTP是一个无状态协议,但由于需要可以使用cookie、会话数据等来保持状态
Statefull protocol is a protocol designed to keep state in each step, meaning that a statefull server is aware of previous requests.
Stateless protocol do not keep state. Each request is a like it is a new request.
State can be build into stateless protocols.
E.g. HTTP is a stateless protocol, but due to needs state can be kept using cookies, session data etc