Home About us GitHub Contact us Docs

FoxOS

Welcome to the FoxOS website!

udp_handler::udp_handler

Signature: udp_handler::udp_handler()
Attributes: undefined
Description: Constructor for the udp handler class

udp_handler::~udp_handler

Signature: udp_handler::~udp_handler()
Attributes: undefined
Description: Destructor for the udp handler class

udp_handler::on_udp_message

Signature: void udp_handler::on_udp_message(udp_socket *socket, uint8_t* data, size_t size)
Description: Handles a UDP message

Parameters:

Return: void

udp_socket::udp_socket

Signature: udp_socket::udp_socket(udp_provider* provider)
Attributes: undefined
Description: Constructor for the udp socket class

Parameters:

udp_socket::~udp_socket

Signature: udp_socket::~udp_socket()
Attributes: undefined
Description: Destructor for the udp socket class

udp_socket::handle_udp_message

Signature: void udp_socket::handle_udp_message(uint8_t* data, size_t size)
Description: Handles a UDP message

Parameters:

Return: void

udp_socket::send

Signature: void udp_socket::send(uint8_t* data, size_t size)
Description: Sends a UDP message

Parameters:

Return: void

udp_socket::disconnect

Signature: void udp_socket::disconnect()
Description: Disconnects the socket

Return: void

udp_provider::udp_provider

Signature: udp_provider::udp_provider(ipv4_provider* ipv4Provider): ipv4_handler(ipv4Provider, 0x11), binds(100)
Attributes: undefined
Description: Constructor for the udp provider class

Parameters:

udp_provider::on_internet_protocol_received

Signature: bool udp_provider::on_internet_protocol_received(uint32_t srcIP_BE, uint32_t dstIP_BE, uint8_t* payload, uint32_t size)
Description: Handles an IPv4 packet

Parameters:

Return: bool

udp_provider::connect

Signature: udp_socket* udp_provider::connect(uint32_t ip, uint16_t port)
Description: Connects to a host

Parameters:

Return: udp_socket*

udp_provider::listen

Signature: udp_socket* udp_provider::listen(uint16_t port)
Description: Listens for incoming connections

Parameters:

Return: udp_socket*

udp_provider::disconnect

Signature: void udp_provider::disconnect(udp_socket* socket)
Description: Disconnects the socket

Parameters:

Return: void

udp_provider::send

Signature: void udp_provider::send(udp_socket* socket, uint8_t* data, size_t size)
Description: Sends a UDP message

Parameters:

Return: void

udp_provider::bind

Signature: void udp_provider::bind(udp_socket* socket, udp_handler* handler)
Description: Binds the socket to a port

Parameters:

Return: void

Show file on GitHub