IP和十进制数互转使用Java实现。
TakethefollowingIPv4address:128.32.10.1
Thisaddresshas4octetswhereeachoctetisasinglebyte(or8bits).
1stoctet128hasthebinaryrepresentation:10000000
2ndoctet32hasthebinaryrepresentation:00100000
3rdoctet10hasthebinaryrepresentation:00001010
4thoctet1hasthe
下载地址
用户评论