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

Represents a Hicn connection for the connection table. More...

#include <hicn/core/forwarder.h>
#include <hicn/io/addressPair.h>
#include <hicn/io/ioOperations.h>
#include <hicn/utils/address.h>
Include dependency graph for hicnConnection.h:

Go to the source code of this file.

Functions

IoOperationshicnConnection_Create (Forwarder *forwarder, const char *interfaceName, int fd, const AddressPair *pair, bool isLocal)
 

Detailed Description

Represents a Hicn connection for the connection table.

<#Detailed Description#>

Function Documentation

◆ hicnConnection_Create()

IoOperations* hicnConnection_Create ( Forwarder *  forwarder,
const char *  interfaceName,
int  fd,
const AddressPair *  pair,
bool  isLocal 
)

Creates a Hicn connection that can send to the remote address

The address pair must both be same type (i.e. INET or INET6).

Parameters
[in]anallocated hicn-light Forwarder (saves reference)
[in]fdThe socket to use
[in]pairAn allocated address pair for the connection (saves reference)
[in]isLocaldetermines if the remote address is on the current system
Return values
non-nullAn allocated Io operations
nullAn error

Example:

<#example#>