Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

connection_t Struct Reference

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.

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.

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.