equal
deleted
inserted
replaced
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 |