public class OtpServerSocketTransport extends java.lang.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 java.io.IOException
java.io.IOException
ServerSocket.ServerSocket(int)
public OtpTransport accept() throws java.io.IOException
accept
in interface OtpServerTransport
java.io.IOException
ServerSocket.accept()
public void close() throws java.io.IOException
close
in interface OtpServerTransport
java.io.IOException
ServerSocket.close()
public int getLocalPort()
getLocalPort
in interface OtpServerTransport
ServerSocket.getLocalPort()