Python Network Programming Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Converting an IPv4 address to different formats

When you would like to deal with low-level network functions, sometimes, the usual string notation of IP addresses are not very useful. They need to be converted to the packed 32-bit binary formats.