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.
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_group * | next |
next link | |
struct netif * | netif |
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 |
u8_t group_state |
u8_t last_reporter_flag |
struct igmp_group* next |
Generated on Tue Jul 12 2022 21:10:27 by 1.7.2