UNIX 套接字编程 #15
JAX1024Dev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
概述
套接字地址结构
字节排序
内存中存储的两种方法:
从理论上来说,具体实现可以按照主机字节序存储套接字地址结构中的各个字段,等到需要在这些字段和协议首部相应字段之间移动时,再在主机字节序和网络字节序之间进行转换,让我们免于操心转换细节。然而由于历史原因,套接字地址结构中的某些字段必须按照网络字节序维护。
Beta Was this translation helpful? Give feedback.
All reactions