Package com.ericsson.otp.erlang
Class OtpSocketTransportFactory
java.lang.Object
com.ericsson.otp.erlang.OtpSocketTransportFactory
- All Implemented Interfaces:
OtpTransportFactory
Default socket-based transport factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServerTransport(int port) Create instance ofOtpServerTransportcreateTransport(String addr, int port) Create instance ofOtpTransportcreateTransport(InetAddress addr, int port) Create instance ofOtpTransport
-
Constructor Details
-
OtpSocketTransportFactory
public OtpSocketTransportFactory()
-
-
Method Details
-
createTransport
Description copied from interface:OtpTransportFactoryCreate instance ofOtpTransport- Specified by:
createTransportin interfaceOtpTransportFactory- Parameters:
addr- host name or IP address stringport- port number- Returns:
- new socket object
- Throws:
IOException- See Also:
-
createTransport
Description copied from interface:OtpTransportFactoryCreate instance ofOtpTransport- Specified by:
createTransportin interfaceOtpTransportFactory- Parameters:
addr- peer addressport- port number- Returns:
- new socket object
- Throws:
IOException- See Also:
-
createServerTransport
Description copied from interface:OtpTransportFactoryCreate instance ofOtpServerTransport- Specified by:
createServerTransportin interfaceOtpTransportFactory- Parameters:
port- port number to listen on- Returns:
- new socket object
- Throws:
IOException- See Also:
-