Hi list!

I was wondering what's the difference between using:

1) $blah = pack('S n a4 x8', 2, 80, (gethostbyname("whatever.com"))[4]);
2) $blah = pack('S n a4 x8', 2, 80, inet_aton("whatever.com"));
3) $blah = sockaddr_in(80, inet_aton("whatever.com"));
4) $blah = sockaddr_in(80, (gethostbyname("whatever.com"))[4]);

Is it just a matter of taste, of portability?

Later.-


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to