47 static uint16_t
calcTCPChecksum(
bool options, uint16_t dataLength, uint16_t dataChecksum);
48 static uint16_t
calcUDPChecksum(uint16_t dataLength, uint16_t dataChecksum);
57 uint16_t
write(uint16_t len,
const byte* data);
58 uint16_t
write(
const String& s);
59 uint16_t
write(
const __FlashStringHelper* pattern, ...);
87 inline uint16_t
write(
const T& message)
89 return write(
sizeof(T), (byte*)&message);
nint16_t localPort
local TCP or UDP port
uint16_t write(uint16_t len, const byte *data)
In the case of TCP, writes the given data buffer to the socket.
nint16_t remotePort
remote TCP or UDP port
static bool verifyUDPTCPChecksum()
Verifies if the UDP or TCP checksum of the current packet is correct.
represents an IP address in memory
SharedBuffer buffer
output buffer for this socket
Represents a network byte order 16 bit integer.
static uint16_t calcUDPChecksum(uint16_t dataLength, uint16_t dataChecksum)
Calculates the UDP checksum.
Implements a "shared" circular buffer using spare ENC28J60 memory.
Base class for TCP and UDP sockets.
static uint16_t calcTCPChecksum(bool options, uint16_t dataLength, uint16_t dataChecksum)
Calculates the TCP checksum.
static uint8_t srcPort_L_count
self-incrementing counter for local ports.
static uint16_t calcPseudoHeaderChecksum(uint8_t protocol, uint16_t length)
Calculates the TCP or UDP pseudo header checksum.
IPAddress remoteIP
remote IP address to connect to (TCP) or send the next packet to (UDP)
uint16_t write(const T &message)
Writes out the binary representation of the parameter to the socket.
Abstract base class for any network service running in EtherDune.