Example program with HTTPServer and sensor data streaming over TCPSockets, using Donatien Garnier's Net APIs and services code on top of LWIP. Files StreamServer.h and .cpp encapsulate streaming over TCPSockets. Broadcast is done by sendToAll(), and all incoming data is echoed back to the client. Echo code can be replaced with some remote control of the streaming interface. See main() that shows how to periodically send some data to all subscribed clients. To subscribe, a client should open a socket at <mbed_ip> port 123. I used few lines in TCL code to set up a quick sink for the data. HTTP files are served on port 80 concurrently to the streaming.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

sha1_context Struct Reference

sha1_context Struct Reference

SHA-1 context structure. More...

#include <sha1.h>

Data Fields

unsigned long total [2]
unsigned long state [5]
unsigned char buffer [64]
unsigned char ipad [64]
unsigned char opad [64]

Detailed Description

SHA-1 context structure.

Definition at line 27 of file sha1.h.


Field Documentation

unsigned char buffer[64]

data block being processed

Definition at line 31 of file sha1.h.

unsigned char ipad[64]

HMAC: inner padding

Definition at line 33 of file sha1.h.

unsigned char opad[64]

HMAC: outer padding

Definition at line 34 of file sha1.h.

unsigned long state[5]

intermediate digest state

Definition at line 30 of file sha1.h.

unsigned long total[2]

number of bytes processed

Definition at line 29 of file sha1.h.