
12 Sep
2012
12 Sep
'12
5:59 p.m.
Appart from being able to use IPv6 ofcourse ← I forgot to mention this _______________________________________________ *In programming, as in everything else, to be in error is to be reborn.** * _______________________________________________ * * 2012/9/12 James Nzomo <kazikubwa@gmail.com>
Jambo skunks!
Is there any clear cut advantage in using "inet_pton()" over assigning an IP address to "*sockaddr_in.sin_addr.s_addr*"
*Yaani:-* *inet_pton(AF_INET,host.c_str(),&m_addr.sin_addr);* *VS.* *sockaddr_in* *.sin_addr.s_addr = inet_addr(host.c_str());* * * * * * * _______________________________________________
*In programming, as in everything else, to be in error is to be reborn.** * _______________________________________________ *
*