What is the difference between AF_INET and PF_INET in socket programming?

前端 未结 7 849
一向
一向 2020-11-30 16:13

What is the difference between AF_INET and PF_INET in socket programming?

I\'m confused between using AF_INET and PF_INET in socket() and bind()

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 16:56

    Checking the header file solve's the problem. One can check for there system compiler.

    For my system , AF_INET == PF_INET

    AF == Address Family And PF == Protocol Family

    Protocol families, same as address families.

    enter image description here

提交回复
热议问题