MegaWiFi 1.5
MegaWiFi API documentation
mw_reuse_payload Struct Reference

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...
 

Detailed Description

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.

Definition at line 352 of file mw-msg.h.

Field Documentation

◆ payload

char mw_reuse_payload::payload[MW_CMD_MAX_BUFLEN - 4 - 2]

Data payload.

Definition at line 356 of file mw-msg.h.

◆ remote_ip

uint32_t mw_reuse_payload::remote_ip

IP of the remote end.

Definition at line 353 of file mw-msg.h.

◆ remote_port

uint16_t mw_reuse_payload::remote_port

Port of the remote end

Definition at line 354 of file mw-msg.h.


The documentation for this struct was generated from the following file: