Network Structure.
Structure for defining a network connection.
#include <network_interface.h>
Data Fields | |
int(* | connect )(Network *, TLSConnectParams) |
int(* | destroy )(Network *) |
Function pointer pointing to the network function to destroy the network object. More... | |
void(* | disconnect )(Network *) |
Function pointer pointing to the network function to disconnect from the network. More... | |
int(* | isConnected )(Network *) |
Function pointer pointing to the network function to check if physical layer is connected. More... | |
int(* | mqttread )(Network *, unsigned char *, int, int) |
Function pointer pointing to the network function to read from the network. More... | |
int(* | mqttwrite )(Network *, unsigned char *, int, int) |
Function pointer pointing to the network function to write to the network. More... | |
int | my_socket |
Integer holding the socket file descriptor. More... | |
int(* Network::connect)(Network *, TLSConnectParams) |
Referenced by iot_tls_init(), and MQTTConnect().
int(* Network::destroy)(Network *) |
Function pointer pointing to the network function to destroy the network object.
Referenced by iot_tls_init(), MQTTDisconnect(), and MQTTForceDisconnect().
void(* Network::disconnect)(Network *) |
Function pointer pointing to the network function to disconnect from the network.
Referenced by iot_tls_destroy(), iot_tls_init(), MQTTDisconnect(), and MQTTForceDisconnect().
int(* Network::isConnected)(Network *) |
Function pointer pointing to the network function to check if physical layer is connected.
Referenced by handleReconnect(), and iot_tls_init().
int(* Network::mqttread)(Network *, unsigned char *, int, int) |
Function pointer pointing to the network function to read from the network.
Referenced by decodePacket(), iot_tls_destroy(), iot_tls_init(), and readPacket().
int(* Network::mqttwrite)(Network *, unsigned char *, int, int) |
Function pointer pointing to the network function to write to the network.
Referenced by iot_tls_destroy(), iot_tls_init(), and sendPacket().
int Network::my_socket |
Integer holding the socket file descriptor.
Referenced by iot_tls_connect(), iot_tls_destroy(), iot_tls_disconnect(), iot_tls_init(), iot_tls_read(), and iot_tls_write().