Package com.ericsson.otp.erlang
Class OtpServerSocketTransport
- java.lang.Object
-
- com.ericsson.otp.erlang.OtpServerSocketTransport
-
- All Implemented Interfaces:
OtpServerTransport
public class OtpServerSocketTransport extends java.lang.Object implements OtpServerTransport
Default socket-based server transport
-
-
Constructor Summary
Constructors Constructor Description OtpServerSocketTransport(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OtpTransport
accept()
void
close()
int
getLocalPort()
-
-
-
Method Detail
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPort
in interfaceOtpServerTransport
- See Also:
ServerSocket.getLocalPort()
-
accept
public OtpTransport accept() throws java.io.IOException
- Specified by:
accept
in interfaceOtpServerTransport
- Throws:
java.io.IOException
- See Also:
ServerSocket.accept()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceOtpServerTransport
- Throws:
java.io.IOException
- See Also:
ServerSocket.close()
-
-