anchor.diff:  //        tox_IP4 ip4;
   //        tox_IP6 ip6;
   //    };
  -//} tox_IPAny;
  -  TToxIPAny = record
  -    family: ShortInt;
  -    case Byte of
  -      0: (ip4: TToxIP4);
  -      1: (ip6: TToxIP6);
  +//} tox_IP;
  +
  +  tox_IP_union = record
  +    ip4: tox_IP4;
  +    ip6: tox_IP6;
  +  end;
  +
  +  tox_IP = record
  +    family: sa_family_t;
  +    union: tox_IP_union;
     end;
   
   ///* will replace IP_Port as soon as the complete infrastructure is in place
   // * removed the unused union and padding also */
   //typedef struct {
  -//    tox_IPAny ip;
  +//    tox_IP    ip;
   //    uint16_t  port;
  -//} tox_IPAny_Port;
  -  TToxIPAnyPort = record
  -    ip: TToxIPAny;
  +//} tox_IP_Port;
  +  tox_IP_Port = record
  +    ip: tox_IP;
       port: Word;
     end;
  -
  -//typedef union {
  -//    struct {
  -//        tox_IP4  ip;
  -//        uint16_t port;
  -//        /* Not used for anything right now. */
  -//        uint16_t padding;
  -//    };
  -//    uint8_t uint8[8];
  -//} tox_IP4_Port;
  -
  -
  -  TIp4PortData = record
  -    ip: TToxIP4;
  -    port: Word;
  -    padding: Word;
  -  end;
  -
  -  TToxIP4Port = record
  -    case Byte of
  -      0: (data: TIp4PortData);
  -      1: (uint8: array[0..7] of Byte);
  -  end;
  -
  -  {$DEFINE TOX_ENABLE_IPV6}
  -  {$IFDEF TOX_ENABLE_IPV6}
  -    {$DEFINE TOX_ENABLE_IPV6_DEFAULT}
  -    TToxIp = TToxIPAny;
  -    TToxIpPort = TToxIPAnyPort;
  -  {$ELSE}
  -    TToxIp = TToxIP4;
  -    TToxIpPort = TToxIP4Port;
  -  {$ENDIF}
   
   //enum {
   //    TOX_FAERR_TOOLONG = -1,
  
positive.code: //    struct in6_addr in6_addr;
  //} tox_IP6;
  
    TToxIP6 = record
      case Byte of
        0: (uint8: array[0..15] of Byte);
        1: (uint16: array[0..7] of Word);
        2: (uint32: array[0..3] of Cardinal);
        3: (in6_addr: PIn6Addr);
    end;
  
  //typedef struct {
  
negative.code: // *   to setup connections
  // */
  //void tox_bootstrap_from_ip(Tox *tox, tox_IP_Port ip_port, uint8_t *public_key);
  procedure tox_bootstrap_from_ip(Tox: TTox; ip_port: tox_IP_Port;
    public_key: PByte); cdecl; external TOX_LIBRARY;
  
  ///* Resolves address into an IP address. If successful, sends a "get nodes"
  // *   request to the given node with ip, port (in network byte order, HINT: use htons())
  // *   and public_key to setup connections
  // *
  // * address can be a hostname or an IP address (IPv4 or IPv6).
  // * if ipv6enabled is 0 (zero), the resolving sticks STRICTLY to IPv4 addresses
  