TcpTransport.ConnectionInfo Class¶
A TcpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the TCP connection.
| [C++]: | #include <ndn-cpp/transport/tcp-transport.hpp>Namespace:
ndn |
|---|---|
| [Python]: | Module: pyndn.transport |
| [Java]: | Package: net.named_data.jndn.transport |
TcpTransport.ConnectionInfo Constructor¶
Create a TcpTransport.ConnectionInfo with the given host and port.
| [C++]: | ConnectionInfo(
const char *host
[, unsigned short port]
);
|
|---|---|
| [Python]: | def __init__(self,
host # str
[, port # int])
|
| [Java]: | public ConnectionInfo(
String host
[, int port]
)
|
| Parameters: |
|
TcpTransport Class¶
| [C++]: | #include <ndn-cpp/transport/tcp-transport.hpp>Namespace:
ndn |
|---|---|
| [Python]: | Module: pyndn.transport |
| [Java]: | Package: net.named_data.jndn.transport |
TcpTransport Constructor¶
Create a TcpTransport which extends the Transport interface to implement communication over TCP.
| [C++]: | TcpTransport();
|
|---|---|
| [Python]: | def __init__(self)
|
| [JavaScript]: | var TcpTransport = function TcpTransport()
|
| [Java]: | public TcpTransport()
|
