Hi,

In .net 1.1, the socket.connect method only takes an endpoint.  If I
want to connect to a named address, such as www.cnn.com, can I create
an IPEndPoint without calling Dns.Resolve or Dns.GetHostEntry?

Something like

IPEndPoint endPoint = new IPEndPoint('www.cnn.com', 80);
...
sock.connect(endPoint);



or must I always use Dns.Resolve to get a dotted ip address?

I guess this all depend on whether .net 1.1 socket.connect can resolve
a host name to an ip address?

Thanks


Reply via email to