Create InetAddress from a String.
I need to create a socket connection to a site.
String name = "elektra.usm.com"
socket sock = new socket( name, port );
This wont work because the name isn't an ip address. I need to create
an InetAddress from it. How do I do that?
Jerry
.
Relevant Pages
- Re: Problem with socket
... Be aware that those port numbers are part of the IANA-assigned range. ... socket operations on sockets for which there are no handles... ... The result of using comma lists is ... you have used the completely meaningless word "crash" to describe your ... (microsoft.public.vc.mfc) - RE: call is blocked in recvfrom() and no further proceedings in Win CE
... In windows CE, I'm able to send a request but I'm unable to receive it. ... Create another socket & bind with server IP address. ... > My program has to send request to service through port 5070(in this port only ... (microsoft.public.windowsce.embedded) - Re: ISA Event
... applying ISA SP1 resolved the issue. ... So it's worth asking - is this SBS ... > Web Proxy service failed to bind its socket to 192.168.4.9 port 443. ... (microsoft.public.backoffice.smallbiz2000) - Re: Freebsd IP Forwarding performance (question, and some info) [7-stable, current, em, smp]
... INADDR_ANY and a specific port. ... sendtoon a specific address and port on a socket that has been bound to ... bogus exit code) and adds a sleep after send failure. ... unless HZ is too small or the queue is too large. ... (freebsd-net) - Re: RMI binding to SAME port but DIFFERENT IP address on SAME host
... A socket is identified by its IP address, its port number, and its ... via the Sockets API. ... > port number for each listening interface, ... (comp.lang.java.programmer) |
|