Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

comm_layer.h File Reference

comm_layer.h File Reference

Defines _communication layer_ abstraction interface. More...

Go to the source code of this file.

Data Structures

struct  comm_layer_t
 _The communication layer interface_ - contains function pointers, that's what we expose to the layers above and below More...

Functions

const comm_layer_tget_comm_layer (void)
 Initialise an implementation of the _communication layer_.

Detailed Description

Defines _communication layer_ abstraction interface.

Author:
Olgierd Humenczuk The design of _communication layer_ was based on Berkley/POSIX socket API.

Definition in file comm_layer.h.


Function Documentation

const comm_layer_t* get_comm_layer (  )

Initialise an implementation of the _communication layer_.

This intialiser assigns function pointers to the actual implementations using static function variable trick, hence the intialisation should not give any overhead.

Returns:
Structure with function pointers for platform-specific communication methods (see `mbed_comm.h` and `posix_comm.h` for how it's done).

Definition at line 16 of file mbed_comm_layer.c.