Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_flow_port_type_in Struct Reference

Node's Input port structure. More...

#include <sol-flow.h>

Data Fields

uint16_t api_version
 Must match SOL_FLOW_PORT_TYPE_OUT_API_VERSION at runtime. More...
 
int(* connect )(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id)
 member function issued every time a new connection is made to the port More...
 
int(* disconnect )(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id)
 member function issued every time a connection is unmade on the port More...
 
const struct sol_flow_packet_typepacket_type
 The packet type that the port will receive. More...
 
int(* process )(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id, const struct sol_flow_packet *packet)
 Member function issued every time a new packet arrives to the port. More...
 

Detailed Description

Node's Input port structure.

Field Documentation

uint16_t sol_flow_port_type_in::api_version

Must match SOL_FLOW_PORT_TYPE_OUT_API_VERSION at runtime.

int(* sol_flow_port_type_in::connect)(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id)

member function issued every time a new connection is made to the port

int(* sol_flow_port_type_in::disconnect)(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id)

member function issued every time a connection is unmade on the port

const struct sol_flow_packet_type* sol_flow_port_type_in::packet_type

The packet type that the port will receive.

int(* sol_flow_port_type_in::process)(struct sol_flow_node *node, void *data, uint16_t port, uint16_t conn_id, const struct sol_flow_packet *packet)

Member function issued every time a new packet arrives to the port.


The documentation for this struct was generated from the following file: