Go to the documentation of this file.
18 #ifndef __LIB_LIBNET_NETWORKPROTOCOL_H
19 #define __LIB_LIBNET_NETWORKPROTOCOL_H
102 const Size addressSize,
104 const Size payloadSize);
115 const Size offset) = 0;
Network protocol abstraction class.
virtual ~NetworkProtocol()
Destructor.
Network Device abstract class.
Directory File functionality.
NetworkProtocol & m_parent
Parent upper-layer protocol instance.
Ethernet networking protocol.
NetworkDevice & m_device
Network device instance.
virtual const Size getMaximumPacketSize() const
Get maximum packet size.
virtual FileSystem::Result initialize()=0
Perform initialization.
unsigned int Size
Any sane size indicator cannot go negative.
NetworkProtocol(NetworkServer &server, NetworkDevice &device, NetworkProtocol &parent)
Constructor.
virtual FileSystem::Result getTransmitPacket(NetworkQueue::Packet **pkt, const void *address, const Size addressSize, const Identifier protocol, const Size payloadSize)
Get a new packet for transmission.
NetworkServer & m_server
Network server instance.
Result
Result code for filesystem Actions.
virtual FileSystem::Result process(const NetworkQueue::Packet *pkt, const Size offset)=0
Process incoming network packet.
Represents a network packet.
Identifier
List of known network protocol identifiers.