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

igmp_group Struct Reference

igmp_group Struct Reference

igmp group structure - there is a list of groups for each interface these should really be linked from the interface, but if we keep them separate we will not affect the lwip original code too much More...

#include <igmp.h>

Data Fields

struct igmp_groupnext
 next link
struct netifnetif
 interface on which the group is active
ip_addr_t group_address
 multicast address
u8_t last_reporter_flag
 signifies we were the last person to report
u8_t group_state
 current state of the group
u16_t timer
 timer for reporting, negative is OFF
u8_t use
 counter of simultaneous uses

Detailed Description

igmp group structure - there is a list of groups for each interface these should really be linked from the interface, but if we keep them separate we will not affect the lwip original code too much

There will be a group for the all systems group address but this will not run the state machine as it is used to kick off reports from all the other groups

Definition at line 72 of file igmp.h.


Field Documentation

ip_addr_t group_address

multicast address

Definition at line 78 of file igmp.h.

current state of the group

Definition at line 82 of file igmp.h.

signifies we were the last person to report

Definition at line 80 of file igmp.h.

struct netif* netif

interface on which the group is active

Definition at line 76 of file igmp.h.

struct igmp_group* next

next link

Definition at line 74 of file igmp.h.

u16_t timer

timer for reporting, negative is OFF

Definition at line 84 of file igmp.h.

u8_t use

counter of simultaneous uses

Definition at line 86 of file igmp.h.