Hacker News new | ask | show | jobs
by worldmerge 1373 days ago
How does this work?
1 comments

IPv4 addresses are 32-bit numbers, the dotted-decimal representation is just a common way to represent those numbers.
In particular inet_aton() function considers a single integer to be the 32bit form. Accepts decimal, octal, and hex. https://linux.die.net/man/3/inet_aton