It has nothing to do with hardware vs software (and yes, there exist hardware implementations of TCP/IP networking).
TCP port numbers have meaning when they appear in a TCP packet header. There is no connection to other types of port numbers, e.g. I/O port numbers which are used by the inb and outb functions and (on x86 computers) appear on the address lines of the system bus (e.g. ISA or PCI). If you called inb(80), it would not mean "http" in any way. On my computer, I/O port 80 (0x50) is used by the system timer.
发布评论
评论(1)
http 是 TCP 端口 80
它与硬件与软件无关(是的,存在 TCP/IP 网络的硬件实现)。
当 TCP 端口号出现在 TCP 数据包标头中时,它们就有意义。没有与其他类型的端口号的连接,例如 < 使用的 I/O 端口号code>inb 和
outb
函数 和 (在 x86 计算机上)出现在系统总线(例如 ISA 或 PCI)的地址线上。如果您调用inb(80)
,它无论如何都不会意味着“http”。在我的计算机上,I/O 端口 80 (0x50) 由系统计时器使用。注意:相当于
inb
的 Windows 是READ_PORT_UCHAR
。http is TCP port 80
It has nothing to do with hardware vs software (and yes, there exist hardware implementations of TCP/IP networking).
TCP port numbers have meaning when they appear in a TCP packet header. There is no connection to other types of port numbers, e.g. I/O port numbers which are used by the
inb
andoutb
functions and (on x86 computers) appear on the address lines of the system bus (e.g. ISA or PCI). If you calledinb(80)
, it would not mean "http" in any way. On my computer, I/O port 80 (0x50) is used by the system timer.Note: The windows equivalent to
inb
isREAD_PORT_UCHAR
.