inet_addr is deprecated. Use inet_aton instead.