Package com.ericsson.otp.erlang
Class OtpSocketTransportFactory
- java.lang.Object
-
- com.ericsson.otp.erlang.OtpSocketTransportFactory
-
- All Implemented Interfaces:
OtpTransportFactory
public class OtpSocketTransportFactory extends java.lang.Object implements OtpTransportFactory
Default socket-based transport factory
-
-
Constructor Summary
Constructors Constructor Description OtpSocketTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OtpServerTransport
createServerTransport(int port)
Create instance ofOtpServerTransport
OtpTransport
createTransport(java.lang.String addr, int port)
Create instance ofOtpTransport
OtpTransport
createTransport(java.net.InetAddress addr, int port)
Create instance ofOtpTransport
-
-
-
Method Detail
-
createTransport
public OtpTransport createTransport(java.lang.String addr, int port) throws java.io.IOException
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:
java.io.IOException
- See Also:
OtpTransportFactory.createTransport(String, int)
-
createTransport
public OtpTransport createTransport(java.net.InetAddress addr, int port) throws java.io.IOException
Description copied from interface:OtpTransportFactory
Create instance ofOtpTransport
- Specified by:
createTransport
in interfaceOtpTransportFactory
- Parameters:
addr
- peer addressport
- port number- Returns:
- new socket object
- Throws:
java.io.IOException
- See Also:
OtpTransportFactory.createTransport(InetAddress, int)
-
createServerTransport
public OtpServerTransport createServerTransport(int port) throws java.io.IOException
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:
java.io.IOException
- See Also:
OtpTransportFactory.createServerTransport(int)
-
-