Socket
that talks to the specified port on the named host. The implementation may choose any way it wants to provide a socket-like object (essentially any mechanism that supports bidirectional communication). The returned Socket
(or subclass of Socket
) might not be based on TCP/IP, or it might involve running a TCP/IP stack over some other protocol, or it might actually redirect all connections via some other proxy machine, etc.
@param host The host name.
@param port The port number.
@return An object that provides socket-like communication.
@throws IOException If there is some problem establishing the socket to the specified port on the named host.
|
|