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.
Share
Define a new datatype. You may be able to get some inspiration from previous attempts at this:
And so on and so forth.