Web server based weather station using Sparkfun Weather Meters.

Dependencies:   FatFileSystem mbed WeatherMeters SDFileSystem

Embed: (wiki syntax)

« Back to documentation index

SBuffer Struct Reference

SBuffer Struct Reference

Structure used to buffer data being read in from content files and then written out the TCP/IP connections. More...

#include <HTTPServer.h>

Data Fields

char * pWrite
 Pointer into Data where the next tcp_write() should begin.
unsigned int BytesToWrite
 Number of bytes in buffer left to be written to outbound connection.
unsigned int UnacknowledgedBytes
 Number of bytes outstanding on network waiting for acknowledgment.
char Data [TCP_SND_BUF]
 The actual buffer holding data to be sent to remote client.

Detailed Description

Structure used to buffer data being read in from content files and then written out the TCP/IP connections.

Definition at line 28 of file HTTPServer.h.


Field Documentation

unsigned int BytesToWrite

Number of bytes in buffer left to be written to outbound connection.

Definition at line 32 of file HTTPServer.h.

char Data[TCP_SND_BUF]

The actual buffer holding data to be sent to remote client.

Definition at line 34 of file HTTPServer.h.

char* pWrite

Pointer into Data where the next tcp_write() should begin.

There are BytesToWrite valid bytes left in the Data array to be sent.

Definition at line 30 of file HTTPServer.h.

unsigned int UnacknowledgedBytes

Number of bytes outstanding on network waiting for acknowledgment.

Definition at line 33 of file HTTPServer.h.