- java.lang.Object
-
- com.ericsson.otp.erlang.OtpSocketTransportFactory
-
- All Implemented Interfaces:
OtpTransportFactory
public class OtpSocketTransportFactory extends Object implements OtpTransportFactory
Default socket-based transport factory- Author:
- Dmitriy Kargapolov
-
-
Constructor Summary
Constructors Constructor Description OtpSocketTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OtpServerTransportcreateServerTransport(int port)Create instance ofOtpServerTransportOtpTransportcreateTransport(String addr, int port)Create instance ofOtpTransportOtpTransportcreateTransport(InetAddress addr, int port)Create instance ofOtpTransport
-
-
-
Method Detail
-
createTransport
public OtpTransport createTransport(String addr, int port) throws IOException
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:
OtpTransportFactory.createTransport(String, int)
-
createTransport
public OtpTransport createTransport(InetAddress addr, int port) throws IOException
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:
OtpTransportFactory.createTransport(InetAddress, int)
-
createServerTransport
public OtpServerTransport createServerTransport(int port) throws IOException
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:
OtpTransportFactory.createServerTransport(int)
-
-