Use a bytes field: 4 for IPv4, 16 for IPv6. Ideally, you should use an IP address library with a "packed bytes as std::string" input/output. The in_addr/in6_addr types are stored as 4 or 16 bytes in RAM.
-- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
