6 #include <satcat5/eth_socket.h>
13 m_txbuff, SATCAT5_ESOCK_BUFFSIZE, SATCAT5_ESOCK_PACKETS,
14 m_rxbuff, SATCAT5_ESOCK_BUFFSIZE, SATCAT5_ESOCK_PACKETS)
22 m_rxbuff, SATCAT5_ESOCK_BUFFSIZE, SATCAT5_ESOCK_PACKETS)
29 m_txbuff, SATCAT5_ESOCK_BUFFSIZE, SATCAT5_ESOCK_PACKETS,
37 u8* txbuff,
unsigned txbytes,
unsigned txpkt,
38 u8* rxbuff,
unsigned rxbytes,
unsigned rxpkt)
41 txbuff, txbytes, txpkt,
42 rxbuff, rxbytes, rxpkt)
61 m_addr.
connect(dstmac, dsttype, vtag);
Inheritable container for a eth::Address.
void close() override
Close any open connections and revert to idle.
void connect(const satcat5::eth::MacAddr &addr, const satcat5::eth::MacType &type, const satcat5::eth::VlanTag &vtag=satcat5::eth::VTAG_NONE)
Connect to the designated address.
Implemention of "net::Dispatch" for Ethernet frames.
BufferedIO wrapper for two-way Ethernet communication.
SocketCore(satcat5::eth::Dispatch *iface, u8 *txbuff, unsigned txbytes, unsigned txpkt, u8 *rxbuff, unsigned rxbytes, unsigned rxpkt)
Child must provide transmit and receive working buffers.
void bind(const satcat5::eth::MacType &lcltype, const satcat5::eth::VlanTag &vtag=satcat5::eth::VTAG_NONE)
Listening mode only (no remote address).
void connect(const satcat5::eth::MacAddr &dstmac, const satcat5::eth::MacType &dsttype, const satcat5::eth::MacType &lcltype=satcat5::eth::ETYPE_NONE, const satcat5::eth::VlanTag &vtag=satcat5::eth::VTAG_NONE)
Two-way connection.
Socket(satcat5::eth::Dispatch *iface)
Link this socket to a network interface.
SocketRx(satcat5::eth::Dispatch *iface)
Connect this Socket to a network interface.
SocketTx(satcat5::eth::Dispatch *iface)
Connect this Socket to a network interface.
satcat5::net::Type m_filter
Incoming packet filter.
An Ethernet MAC address (with serializable interface).
EtherType field (uint16) is used a protocol-ID [1536..65535].
u16 value
The 16-bit value is stored in processor-native order.
Header contents for an 802.1Q Virtual-LAN tag.
u16 vid() const
Accessors for each individual field.
Multipurpose filter for matching fields in network packets.