|
AWS IoT Embedded C Device SDK
|
Network interface definition for MQTT client. More...
Go to the source code of this file.
Data Structures | |
| struct | TLSConnectParams |
| TLS Connection Parameters. More... | |
| struct | Network |
| Network Structure. More... | |
Typedefs | |
| typedef struct Network | Network |
| Network Type. More... | |
Functions | |
| int | iot_tls_init (Network *pNetwork) |
| Initialize the TLS implementation. More... | |
| int | iot_tls_connect (Network *pNetwork, TLSConnectParams TLSParams) |
| Create a TLS socket and open the connection. More... | |
| int | iot_tls_write (Network *, unsigned char *, int, int) |
| Write bytes to the network socket. More... | |
| int | iot_tls_read (Network *, unsigned char *, int, int) |
| Read bytes from the network socket. More... | |
| void | iot_tls_disconnect (Network *pNetwork) |
| Disconnect from network socket. More... | |
| int | iot_tls_destroy (Network *pNetwork) |
| Perform any tear-down or cleanup of TLS layer. More... | |
| int | iot_tls_is_connected (Network *pNetwork) |
| Check if TLS layer is still connected. More... | |
Defines an interface to the TLS layer to be used by the MQTT client. Starting point for porting the SDK to the networking layer of a new platform.
Defines a type for the network struct. See structure definition below.
| int iot_tls_connect | ( | Network * | pNetwork, |
| TLSConnectParams | TLSParams | ||
| ) |
Creates an open socket connection including TLS handshake.
| pNetwork | - Pointer to a Network struct defining the network interface. |
| TLSParams | - TLSConnectParams defines the properties of the TLS connection. |
| int iot_tls_destroy | ( | Network * | pNetwork | ) |
| void iot_tls_disconnect | ( | Network * | pNetwork | ) |
| int iot_tls_init | ( | Network * | pNetwork | ) |
Perform any initialization required by the TLS layer. Connects the interface to implementation by setting up the network layer function pointers to platform implementations.
| pNetwork | - Pointer to a Network struct defining the network interface. |
| int iot_tls_is_connected | ( | Network * | pNetwork | ) |
| int iot_tls_read | ( | Network * | , |
| unsigned char * | , | ||
| int | , | ||
| int | |||
| ) |
| int iot_tls_write | ( | Network * | , |
| unsigned char * | , | ||
| int | , | ||
| int | |||
| ) |
1.8.10