18#ifndef __LIB_LIBNET_UDPSOCKET_H
19#define __LIB_LIBNET_UDPSOCKET_H
Abstract Input/Output buffer.
Networking packet queue implementation.
Network socket represents a single logical connection on a protocol.
User Datagram Protocol (UDP) socket.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Send UDP data.
const u16 getPort() const
Get associated local port.
virtual bool canRead() const
Check if the File has data ready for reading.
UDP * m_udp
UDP protocol instance.
virtual ~UDPSocket()
Destructor.
NetworkQueue m_queue
Incoming packet queue.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Receive UDP data.
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt)
Process incoming network packet.
User Datagram Protocol (UDP)
u32 ProcessID
Process Identification Number.
unsigned int u32
Unsigned 32-bit number.
unsigned short u16
Unsigned 16-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Result
Result code for filesystem Actions.
Represents a network packet.