AWS IoT Embedded C Device SDK
Data Fields
Network Struct Reference

Network Structure. More...

#include <network_interface.h>

Data Fields

int my_socket
 Integer holding the socket file descriptor.
 
int(* connect )(Network *, TLSConnectParams)
 
int(* mqttread )(Network *, unsigned char *, int, int)
 Function pointer pointing to the network function to read from the network.
 
int(* mqttwrite )(Network *, unsigned char *, int, int)
 Function pointer pointing to the network function to write to the network.
 
void(* disconnect )(Network *)
 Function pointer pointing to the network function to disconnect from the network.
 
int(* isConnected )(Network *)
 Function pointer pointing to the network function to check if physical layer is connected.
 
int(* destroy )(Network *)
 Function pointer pointing to the network function to destroy the network object.
 

Detailed Description

Structure for defining a network connection.