Differences between inet_aton and inet_ton

Source: Internet
Author: User
RTM: inet_aton () doesn't appear to support IPv6, inet_ton does. the parameter lists are different. the return values are different. inet_ton () requires a four part dot notation and inet_aton can process some other presentation formats.

Don't be surprised that you will encounter similar and sometimes identical functions by different names. the Internet protocol has been evolving since the 60's and has only been "standardized" in the later half of it's history. some differences in Socket API's still exist from one OS to another. they are slowly converging via the standards processes, but the old API's continue to be supported.

I believe inet_aton () is, or will soon be deprecated. But your going to see it in a lot of code for at least another decade

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.