null
indicates that a new socket should be created and connected.
@param remoteAddress the remote address to connect to
@param localAddress the local address to bind the socket to, ornull
for any
@param params additional {@link HttpParams parameters} for connecting
@return the connected socket. The returned object may be differentfrom the sock
argument if this factory supports a layered protocol.
@throws IOException if an I/O error occurs
@throws UnknownHostException if the IP address of the target hostcan not be determined
@throws ConnectTimeoutException if the socket cannot be connectedwithin the time limit defined in the params
|
|
|
|
|
|