title: how to store an ip address in c++?
body: <p>I am creating a p2p c++ library, where I intend to maintain a linked list of members (their Ip  addresses and ports for communications), identical on every members. What C++ data type should I use to store IP addresses? string, long int? so that I can easily use them for UDP communications later on, possibly using sendto and recvfrom routines.</p>