端点和套接字之间有什么区别? [英] What's the difference between endpoint and socket?

查看:79
本文介绍了端点和套接字之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所见过的几乎每一个套接字定义,都将其与术语端点"密切相关:

Almost every definition of socket that I've seen, relates it very closely to the term endpoint:

维基百科:

网络套接字是用于发送或接收数据的内部端点在计算机网络中的单个节点上.具体来说,这是一个该端点在网络软件中的表示形式

A network socket is an internal endpoint for sending or receiving data at a single node in a computer network. Concretely, it is a representation of this endpoint in networking software

此答案:

套接字是(双向)通信中的端点

a socket is an endpoint in a (bidirectional) communication

Oracle的定义:

套接字是两个之间的双向通信链接的一个端点网络上运行的程序

A socket is one endpoint of a two-way communication link between two programs running on the network

即使stackoverflow对标签"sockets"的定义是:

Even stackoverflow's definition of the tag 'sockets' is:

双向进程间通信流的端点

An endpoint of a bidirectional inter-process communication flow

其他答案进一步:

TCP套接字是终结点实例

A TCP socket is an endpoint instance

尽管我不了解在这种情况下实例"的含义.根据答案,如果端点是URL,则看不到如何实例化.>

Although I don't understand what "instance" means in this case. If an endpoint is, according to this answer, a URL, I don't see how that can be instantiated.

推荐答案

端点"是一个通用术语,包括管道,接口,节点等,而套接字"是网络中的特定术语.

"Endpoint" is a general term, including pipes, interfaces, nodes and such, while "socket" is a specific term in networking.

这篇关于端点和套接字之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆