|
MegaWiFi 1.5
MegaWiFi API documentation
|
Payload with remote IP and port. More...
#include <mw-msg.h>
Data Fields | |
| uint32_t | remote_ip |
| IP of the remote end. More... | |
| uint16_t | remote_port |
| char | payload [MW_CMD_MAX_BUFLEN - 4 - 2] |
| Data payload. More... | |
Payload with remote IP and port.
Data sent/received using UDP sockets, uses this special format when reuse flag has been set in the mw_udp_set() call. This allows the program using the UDP socket, to filter incoming IPs, and to be able to properly answer to incoming packets from several peers.
| char mw_reuse_payload::payload[MW_CMD_MAX_BUFLEN - 4 - 2] |
| uint16_t mw_reuse_payload::remote_port |