|
Hybrid ICN (hICN) plugin
v21.06-rc0-4-g18fa668
|
Establish a tunnel to a remote system. More...
#include <hicn/core/forwarder.h>#include <hicn/io/ioOperations.h>#include <hicn/io/listener.h>#include <hicn/utils/address.h>
Go to the source code of this file.
Functions | |
| IoOperations * | hicnTunnel_Create (Forwarder *forwarder, const Address *localAddress, const Address *remoteAddress) |
| IoOperations * | hicnTunnel_CreateOnListener (Forwarder *forwarder, ListenerOps *localListener, const Address *remoteAddress) |
Establish a tunnel to a remote system.
Creates a "hicn tunnel" to a remote system. There must already be a local HICN listener for the local side of the connection.
| IoOperations* hicnTunnel_Create | ( | Forwarder * | forwarder, |
| const Address * | localAddress, | ||
| const Address * | remoteAddress | ||
| ) |
Establishes a connection to a remote system over HICN
The remoteAddress must be of the same type (i.e. v4 or v6) as the localAddress. There must be an existing HICN listener on the local address. If either of these are not true, will return NULL.
The connection will go in the table immediately, and will be in the "up" state.
| [in] | an | allocated hicn-light Forwarder |
| [in] | localAddress | The local IP address and port to use for the connection |
| [in] | remote | Address the remote IP address for the connection, must include a destination port. |
| non-null | An allocated Io Operations structure for the connection |
| null | An error |
Example:
1.8.17