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