端口到底是什么?
一般来说,微处理器中的I/O端口指的是微处理器正在侦听的RAM中的某个内存地址(如果我错了,请纠正我)。
当我们谈论 TCP/IP 端口、FTP 端口等时,“端口”的含义是否相同?
我不确定这个问题的措辞是否正确。如果不正确,可能是由于我对端口的理解不准确。
Generally I/O ports in microprocessor refer to a certain memory address in the RAM that a microprocessor is listening to (correct me if I am wrong).
Does "port" mean the same way when we talk about TCP/IP port, FTP port etc., ?
I am not sure if the question is properly phrased. If it is not properly, it may be due to my understanding of ports being not precise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这种情况下(我认为你的意思是)端口只是物理引脚和存储这些值的寄存器之间的接口。将有硬件对这些引脚进行采样并将值放入寄存器中以供程序使用。
In this case (from what I think you mean) a port is just an interface between the physical pin and the register that stores those values. There will be hardware that samples these pins and places the values into a register for use in your program.
基本上。正如维基百科所述:
因此,您可以将它们视为一种智能与另一种智能(无论是程序还是程序)之间的桥梁。硬件)。
此外,两者都是将数据以位的形式从一个寄存器(或内存中的位置)传输到另一个寄存器。
对于大多数目的来说,它们是相同的。
Basically. As stated by wikipedia:
So you can think of them as both being bridges between one intelligence and another (be it a program or hardware).
Also, both are the transfer of data as bits from one register - or location in memory - to another.
For most purposes, they are the same.