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
OtpTransportFactory
OtpTransport
createTransport
in interface OtpTransportFactory
addr
- host name or IP address stringport
- port numberjava.io.IOException
OtpTransportFactory.createTransport(String, int)
public OtpTransport createTransport(java.net.InetAddress addr, int port) throws java.io.IOException
OtpTransportFactory
OtpTransport
createTransport
in interface OtpTransportFactory
addr
- peer addressport
- port numberjava.io.IOException
OtpTransportFactory.createTransport(InetAddress, int)
public OtpServerTransport createServerTransport(int port) throws java.io.IOException
OtpTransportFactory
OtpServerTransport
createServerTransport
in interface OtpTransportFactory
port
- port number to listen onjava.io.IOException
OtpTransportFactory.createServerTransport(int)