public class OtpServerSocketTransport extends Object implements OtpServerTransport
| Constructor and Description |
|---|
OtpServerSocketTransport(int port) |
| Modifier and Type | Method and Description |
|---|---|
OtpTransport |
accept() |
void |
close() |
int |
getLocalPort() |
public OtpServerSocketTransport(int port)
throws IOException
IOExceptionServerSocket.ServerSocket(int)public int getLocalPort()
getLocalPort in interface OtpServerTransportServerSocket.getLocalPort()public OtpTransport accept() throws IOException
accept in interface OtpServerTransportIOExceptionServerSocket.accept()public void close()
throws IOException
close in interface OtpServerTransportIOExceptionServerSocket.close()Copyright © 2020. All rights reserved.