adding ipv6 portion to example from beej's guide to network programming...