public interface SocketFactory
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(String host,
int port) |
InputStream |
getInputStream(Socket socket) |
OutputStream |
getOutputStream(Socket socket) |
Socket createSocket(String host, int port) throws IOException, UnknownHostException
IOException
UnknownHostException
InputStream getInputStream(Socket socket) throws IOException
IOException
OutputStream getOutputStream(Socket socket) throws IOException
IOException
Copyright © 2017 JCraft,Inc.. All rights reserved.