IPv6 parsing in C

前端 未结 7 1105
猫巷女王i
猫巷女王i 2020-12-15 08:35

I wanted to know how I can parse an IPv6 address in C and convert it to a 128 bit value?

So a hex address like 1:22:333:aaaa:b:c:d:e needs to be convert

7条回答
  •  有刺的猬
    2020-12-15 09:19

    Rosetta has samples in several languages: https://rosettacode.org/wiki/Parse_an_IP_Address

提交回复
热议问题