public class OtpSocketTransport extends Object implements OtpTransport
| Constructor and Description |
|---|
OtpSocketTransport(InetAddress addr,
int port) |
OtpSocketTransport(Socket s)
Socket wrapping constructor
|
OtpSocketTransport(String addr,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
public OtpSocketTransport(String addr, int port) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionSocket.Socket(String, int)public OtpSocketTransport(InetAddress addr, int port) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionSocket.Socket(InetAddress, int)public OtpSocketTransport(Socket s)
s - socket to wrappublic InputStream getInputStream() throws IOException
getInputStream in interface OtpTransportIOExceptionSocket.getInputStream()public OutputStream getOutputStream() throws IOException
getOutputStream in interface OtpTransportIOExceptionSocket.getOutputStream()public void close()
throws IOException
close in interface OtpTransportIOExceptionSocket.close()Copyright © 2020. All rights reserved.