public class OtpSocketTransportFactory extends java.lang.Object implements OtpTransportFactory
| Constructor and Description |
|---|
OtpSocketTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
OtpServerTransport |
createServerTransport(int port)
Create instance of
OtpServerTransport |
OtpTransport |
createTransport(java.net.InetAddress addr,
int port)
Create instance of
OtpTransport |
OtpTransport |
createTransport(java.lang.String addr,
int port)
Create instance of
OtpTransport |
public OtpTransport createTransport(java.lang.String addr, int port) throws java.io.IOException
OtpTransportFactoryOtpTransportcreateTransport in interface OtpTransportFactoryaddr - host name or IP address stringport - port numberjava.io.IOExceptionOtpTransportFactory.createTransport(String, int)public OtpTransport createTransport(java.net.InetAddress addr, int port) throws java.io.IOException
OtpTransportFactoryOtpTransportcreateTransport in interface OtpTransportFactoryaddr - peer addressport - port numberjava.io.IOExceptionOtpTransportFactory.createTransport(InetAddress, int)public OtpServerTransport createServerTransport(int port) throws java.io.IOException
OtpTransportFactoryOtpServerTransportcreateServerTransport in interface OtpTransportFactoryport - port number to listen onjava.io.IOExceptionOtpTransportFactory.createServerTransport(int)