Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Functions
hicnTunnel.h File Reference

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>
Include dependency graph for hicnTunnel.h:

Go to the source code of this file.

Functions

IoOperationshicnTunnel_Create (Forwarder *forwarder, const Address *localAddress, const Address *remoteAddress)
 
IoOperationshicnTunnel_CreateOnListener (Forwarder *forwarder, ListenerOps *localListener, const Address *remoteAddress)
 

Detailed Description

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.

Function Documentation

◆ hicnTunnel_Create()

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.

Parameters
[in]anallocated hicn-light Forwarder
[in]localAddressThe local IP address and port to use for the connection
[in]remoteAddress the remote IP address for the connection, must include a destination port.
Return values
non-nullAn allocated Io Operations structure for the connection
nullAn error

Example:

<#example#>