public class OtpSocketTransportFactory extends Object implements OtpTransportFactory
| Constructor and Description |
|---|
OtpSocketTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
OtpServerTransport |
createServerTransport(int port)
Create instance of
OtpServerTransport |
OtpTransport |
createTransport(InetAddress addr,
int port)
Create instance of
OtpTransport |
OtpTransport |
createTransport(String addr,
int port)
Create instance of
OtpTransport |
public OtpTransport createTransport(String addr, int port) throws IOException
OtpTransportFactoryOtpTransportcreateTransport in interface OtpTransportFactoryaddr - host name or IP address stringport - port numberIOExceptionOtpTransportFactory.createTransport(String, int)public OtpTransport createTransport(InetAddress addr, int port) throws IOException
OtpTransportFactoryOtpTransportcreateTransport in interface OtpTransportFactoryaddr - peer addressport - port numberIOExceptionOtpTransportFactory.createTransport(InetAddress, int)public OtpServerTransport createServerTransport(int port) throws IOException
OtpTransportFactoryOtpServerTransportcreateServerTransport in interface OtpTransportFactoryport - port number to listen onIOExceptionOtpTransportFactory.createServerTransport(int)Copyright © 2020. All rights reserved.