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

Represents a UDP connection (socket) 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 udpConnection.h:

Go to the source code of this file.

Functions

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

Detailed Description

Represents a UDP connection (socket) for the connection table.

<#Detailed Description#>

Function Documentation

◆ udpConnection_Create()

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

Creates a UDP connection that can send to the remote address

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

Parameters
[in]metisAn allocated MetisForwarder (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#>