OtpServerTransportpublic class OtpServerSocketTransport extends java.lang.Object implements OtpServerTransport
| Constructor | Description |
|---|---|
OtpServerSocketTransport(int port) |
| Modifier and Type | Method | Description |
|---|---|---|
OtpTransport |
accept() |
|
void |
close() |
|
int |
getLocalPort() |
public OtpServerSocketTransport(int port)
throws java.io.IOException
java.io.IOExceptionServerSocket(int)public int getLocalPort()
getLocalPort in interface OtpServerTransportServerSocket.getLocalPort()public OtpTransport accept() throws java.io.IOException
accept in interface OtpServerTransportjava.io.IOExceptionServerSocket.accept()public void close()
throws java.io.IOException
close in interface OtpServerTransportjava.io.IOExceptionServerSocket.close()