Max OS 0.3
Loading...
Searching...
No Matches
udp.h File Reference

Defines the User Datagram Protocol (UDP) for network communication. More...

#include <cstdint>
#include <common/eventHandler.h>
#include <net/ipv4.h>
#include <memory/memorymanagement.h>

Go to the source code of this file.

Classes

struct  MaxOS::net::UDPHeader
 The header of a UDP packet. More...
 
class  MaxOS::net::UDPDataReceivedEvent
 Event fired when data is received on a UDP socket. More...
 
class  MaxOS::net::UDPPayloadHandler
 Handles the payload of a UDP packet. More...
 
class  MaxOS::net::UDPSocket
 A UDP socket. More...
 
class  MaxOS::net::UserDatagramProtocolHandler
 Handles the UDP protocol. More...
 

Typedefs

typedef struct PACKED MaxOS::net::UDPHeader MaxOS::net::udp_header_t
 Alias for UDPHeader struct.
 
typedef uint16_t MaxOS::net::UserDatagramProtocolPort
 UDP port.
 

Enumerations

enum class  MaxOS::net::UDPEvents { DATA_RECEIVED }
 The events that can be fired by the UDP protocol. More...
 

Detailed Description

Defines the User Datagram Protocol (UDP) for network communication.

Date
24th November 2022
Author
Max Tyson

Definition in file udp.h.

Typedef Documentation

◆ UserDatagramProtocolPort

UDP port.

Todo:
: Make UDPPort class and do udp_port_t (or generic port that can be used for TCP and UDP)

Definition at line 50 of file udp.h.

Enumeration Type Documentation

◆ UDPEvents

enum class MaxOS::net::UDPEvents
strong

The events that can be fired by the UDP protocol.

Definition at line 41 of file udp.h.

41 {
42 DATA_RECEIVED,
43 };