Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: xively-jumpstart-demo
connection_t Struct Reference
_The connection structure_ - holds data needed for further processing and error handling More...
#include <connection.h>
Data Fields | |
| void * | layer_specific |
| here the layer can hide some layer specific data | |
| char * | address |
| here we store server's address | |
| int | port |
| here we store server's port | |
| size_t | bytes_sent |
| the data sent counter, just for testing and statistics | |
| size_t | bytes_received |
| the data receive counter, just for tests and statistics | |
Detailed Description
_The connection structure_ - holds data needed for further processing and error handling
It also contain `layer_specific` field which should point at the platform's structure, according to the implementation of that specific _communication_ _layer_ and other implementation don't need to care about what that is.
The purpose of that class is to give the abstract interface of a connection that can be easly used with the `comm_layer_t` interface, so that it's possible to send/receive data to/from the server through different communication layer using the same interface.
Definition at line 37 of file connection.h.
Field Documentation
| char* address |
here we store server's address
Definition at line 39 of file connection.h.
| size_t bytes_received |
the data receive counter, just for tests and statistics
Definition at line 42 of file connection.h.
| size_t bytes_sent |
the data sent counter, just for testing and statistics
Definition at line 41 of file connection.h.
| void* layer_specific |
here the layer can hide some layer specific data
Definition at line 38 of file connection.h.
| int port |
here we store server's port
Definition at line 40 of file connection.h.
Generated on Wed Jul 13 2022 17:00:33 by
1.7.2