Skip to main content

ZT_Node_Callbacks

More...

#include <ZeroTierOne.h>

Public Attributes#

Name
longversion
ZT_StatePutFunctionstatePutFunction
ZT_StateGetFunctionstateGetFunction
ZT_WirePacketSendFunctionwirePacketSendFunction
ZT_VirtualNetworkFrameFunctionvirtualNetworkFrameFunction
ZT_VirtualNetworkConfigFunctionvirtualNetworkConfigFunction
ZT_EventCallbackeventCallback
ZT_PathCheckFunctionpathCheckFunction
ZT_PathLookupFunctionpathLookupFunction

Detailed Description#

struct ZT_Node_Callbacks;

Structure for configuring ZeroTier core callback functions

Public Attributes Documentation#

variable version#

long version;

Struct version – must currently be 0

variable statePutFunction#

ZT_StatePutFunction statePutFunction;

REQUIRED: Function to store and/or replicate state objects

variable stateGetFunction#

ZT_StateGetFunction stateGetFunction;

REQUIRED: Function to retrieve state objects from an object store

variable wirePacketSendFunction#

ZT_WirePacketSendFunction wirePacketSendFunction;

REQUIRED: Function to send packets over the physical wire

variable virtualNetworkFrameFunction#

ZT_VirtualNetworkFrameFunction virtualNetworkFrameFunction;

REQUIRED: Function to inject frames into a virtual network's TAP

variable virtualNetworkConfigFunction#

ZT_VirtualNetworkConfigFunction virtualNetworkConfigFunction;

REQUIRED: Function to be called when virtual networks are configured or changed

variable eventCallback#

ZT_EventCallback eventCallback;

REQUIRED: Function to be called to notify external code of important events

variable pathCheckFunction#

ZT_PathCheckFunction pathCheckFunction;

OPTIONAL: Function to check whether a given physical path should be used

variable pathLookupFunction#

ZT_PathLookupFunction pathLookupFunction;

OPTIONAL: Function to get hints to physical paths to ZeroTier addresses


Updated on 25 October 2021 at 23:59:59 UTC