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
-
Method Summary
Modifier and TypeMethodDescriptioncreateServerTransport
(int port) Create instance ofOtpServerTransport
createTransport
(String addr, int port) Create instance ofOtpTransport
createTransport
(InetAddress addr, int port) Create instance ofOtpTransport
-
Constructor Details
-
OtpSocketTransportFactory
public OtpSocketTransportFactory()
-
-
Method Details
-
createTransport
Description copied from interface:OtpTransportFactory
Create instance ofOtpTransport
- Specified by:
createTransport
in interfaceOtpTransportFactory
- Parameters:
addr
- host name or IP address stringport
- port number- Returns:
- new socket object
- Throws:
IOException
- See Also:
-
createTransport
Description copied from interface:OtpTransportFactory
Create instance ofOtpTransport
- Specified by:
createTransport
in interfaceOtpTransportFactory
- Parameters:
addr
- peer addressport
- port number- Returns:
- new socket object
- Throws:
IOException
- See Also:
-
createServerTransport
Description copied from interface:OtpTransportFactory
Create instance ofOtpServerTransport
- Specified by:
createServerTransport
in interfaceOtpTransportFactory
- Parameters:
port
- port number to listen on- Returns:
- new socket object
- Throws:
IOException
- See Also:
-