addr.bproto 379 B

1234567891011
  1. // message for an AddrProto address
  2. message addr {
  3. // address type. from addr.h
  4. required uint8 type = 1;
  5. // for IPv4 and IPv6 addresses, the port (network byte order)
  6. optional data("2") ip_port = 2;
  7. // for IPv4 addresses, the IP address
  8. optional data("4") ipv4_addr = 3;
  9. // for IPv6 addresses, the IP address
  10. optional data("16") ipv6_addr = 4;
  11. };