12 #ifndef NETWORK_CORE_ADDRESS_H 
   13 #define NETWORK_CORE_ADDRESS_H 
   17 #include "../../string_func.h" 
   18 #include "../../core/smallmap_type.hpp" 
   53     address_length(address_length),
 
   66     address_length(address_length),
 
   70     memset(&this->address, 0, 
sizeof(this->address));
 
   71     memcpy(&this->address, address, address_length);
 
   88     char *tmp = strrchr(this->hostname, 
']');
 
   89     if (tmp != NULL) *tmp = 
'\0';
 
   92     this->
address.ss_family = family;
 
  102     memcpy(
this, &address, 
sizeof(*
this));
 
  144     if (r == 0) r = this->address.ss_family - address.
address.ss_family;
 
  145     if (r == 0) r = memcmp(&this->address, &address.
address, this->address_length);