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()
.
Also, how to give ip-address in sin_addr
field?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…