- sock
- the socket to connect, as obtained from PlainSocketFactory.CreateSocket. null indicates that a new socket should be created and connected.
- host
- the host to connect to
- port
- the port to connect to on the host
- localAddress
- the local address to bind the socket to, or null for any
- localPort
- the port on the local machine, 0 or a negative number for any
- params
- additional Org.Apache.Http.Params.IHttpParams for connecting
Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException
Connects a socket to the given host.