Closed GoogleCodeExporter closed 9 years ago
So you'd better pass the 1st parameter with ip address string.
Original comment by haojies...@gmail.com
on 19 Feb 2011 at 4:11
Original comment by jun...@google.com
on 16 Nov 2011 at 11:40
This is fixed in newer version. The current SetIP function should look like:
void SocketAddress::SetIP(const std::string& hostname) {
hostname_ = hostname;
literal_ = IPFromString(hostname, &ip_);
if (!literal_) {
ip_ = IPAddress(INADDR_ANY);
}
}
Original comment by jun...@google.com
on 17 Nov 2011 at 12:26
Original issue reported on code.google.com by
zhangsan...@gmail.com
on 19 Feb 2011 at 3:54