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 OtpServerTransportcreateServerTransport(int port)Create instance ofOtpServerTransportOtpTransportcreateTransport(java.lang.String addr, int port)Create instance ofOtpTransportOtpTransportcreateTransport(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:OtpTransportFactoryCreate instance ofOtpTransport- Specified by:
 createTransportin 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:OtpTransportFactoryCreate instance ofOtpTransport- Specified by:
 createTransportin 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:OtpTransportFactoryCreate instance ofOtpServerTransport- Specified by:
 createServerTransportin interfaceOtpTransportFactory- Parameters:
 port- port number to listen on- Returns:
 - new socket object
 - Throws:
 java.io.IOException- See Also:
 OtpTransportFactory.createServerTransport(int)
 
 - 
 
 -