null
indicates that a new socket should be created and connected.
@param host the host to connect to
@param port the port to connect to on the host
@param localAddress the local address to bind the socket to, ornull
for any
@param localPort the port on the local machine,0 or a negative number 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
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
null
indicates that a new socket should be created and connected.
@param host the host to connect to
@param port the port to connect to on the host
@param localAddress the local address to bind the socket to, ornull
for any
@param localPort the port on the local machine,0 or a negative number 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
null
indicates that a new socket should be created and connected.
@param host target host as specified by the caller (end user).
@param remoteAddress the resolved remote address to connect to.
@param localAddress the local address to bind the socket to, or null
for any.
@param context the actual HTTP context.
@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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|