SGDK
A free and open development kit for the Sega Mega Drive
Loading...
Searching...
No Matches
mw_reuse_payload Struct Reference

Payload with remote IP and port. More...

#include <mw-msg.h>

Public Attributes

uint32_t remote_ip
 IP of the remote end.
uint16_t remote_port
char payload [MW_CMD_MAX_BUFLEN - 4 - 2]
 Data payload.

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.

Member Data Documentation

◆ remote_port

uint16_t mw_reuse_payload::remote_port

Port of the remote end


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