commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mao <james....@iona.com>
Subject HttpClient: Socket(hostName,) or Socket(InetAddress,)
Date Thu, 08 Mar 2007 03:43:17 GMT
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
View raw message