commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Lavintman" <shimana...@gmail.com>
Subject Re: HttpClient: Socket(hostName,) or Socket(InetAddress,)
Date Fri, 09 Mar 2007 02:02:11 GMT
its just an overloaded method.



On 3/8/07, James Mao <james.mao@iona.com> wrote:
>
> Hi,
>
> I just noticed that in
> org/apache/commons/httpclient/protocol/DefaultProtocolSocketFactory
>
> we use the Socket(host, port), why not use Socket(InetAddress, port)
>
> I guess the the Socket(host, port) will eventually call
> Socket(InetAddress, port), right?
> I think if we use Socket(InetAddress, port), can improve the productivity.
>
> thoughts?
>
> James.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message