internal override void SetAddress(HostAddr addr)
{
IPAddress ip = null;
if (addr is HostIP)
{
ip = ((HostIP)addr).ip;
}
else
{
IPHostEntry host_info = Dns.GetHostEntry(addr.host);
DebugUtils.Assert(host_info.AddressList.Length > 0);
ip = host_info.AddressList[0];
}
connect_ep_ = new IPEndPoint(ip, addr.port);
DebugUtils.Log("SetAddress - {0}:{1}", ip, addr.port);
}