src/Network/Address.cc
changeset 380 d193dd1d8a7e
parent 379 2a8e780844d2
child 381 9b35bc329d23
equal deleted inserted replaced
379:2a8e780844d2 380:d193dd1d8a7e
    78         throw NetworkAddressError(*this, "getnameinfo", gai_strerror(err));
    78         throw NetworkAddressError(*this, "getnameinfo", gai_strerror(err));
    79     
    79     
    80     // copy over to address
    80     // copy over to address
    81     memcpy(&this->address, addr, len);
    81     memcpy(&this->address, addr, len);
    82 
    82 
       
    83     // and update address_length
       
    84     this->address_length = len;
       
    85 
    83     // and the hostname + service
    86     // and the hostname + service
    84     hostname = host_buf;
    87     hostname = host_buf;
    85     service = serv_buf;
    88     service = serv_buf;
    86 }
    89 }
    87 
    90