net.named_data.jndn.transport
public static class AsyncTcpTransport.ConnectionInfo extends Transport.ConnectionInfo
| Constructor and Description |
|---|
AsyncTcpTransport.ConnectionInfo(String host)
Create a ConnectionInfo with the given host and default port 6363
|
AsyncTcpTransport.ConnectionInfo(String host,
int port)
Create a ConnectionInfo with the given host and port.
|
AsyncTcpTransport.ConnectionInfo(String host,
int port,
boolean attemptReconnection)
Create a ConnectionInfo with the given host and port.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Get the host given to the constructor.
|
int |
getPort()
Get the port given to the constructor.
|
boolean |
shouldAttemptReconnection()
Get attemptReconnection flag; if true, drop packets until reconnected within
AsyncTcpTransport.DEFAULT_RECONNECT_TRY_DELAY_MS |
public AsyncTcpTransport.ConnectionInfo(String host, int port, boolean attemptReconnection)
host - The host for the connection.port - The port number for the connection.attemptReconnection - if true, drop packets until reconnected within AsyncTcpTransport.DEFAULT_RECONNECT_TRY_DELAY_MSpublic AsyncTcpTransport.ConnectionInfo(String host, int port)
host - The host for the connection.port - The port number for the connection.public AsyncTcpTransport.ConnectionInfo(String host)
host - The host for the connection.public final String getHost()
public final int getPort()
public final boolean shouldAttemptReconnection()
AsyncTcpTransport.DEFAULT_RECONNECT_TRY_DELAY_MSCopyright © 2016. All rights reserved.