50 uint32_t sequenceNumber;
54 bool onPacketReceived();
55 void processOutgoingBuffer();
56 void prepareTCPPacket(
bool options, uint16_t dataLength);
57 void releaseWindow(int32_t& bytesAck);
59 void sendSYN(
bool ack);
60 __FlashStringHelper* getStateString();
77 virtual void onReceive(uint16_t len,
const byte* data);
virtual void onConnectRequest()
Called when a listening socket receives a connection request.
virtual void onConnect()
Fires when the socket connection is established.
void push()
Sets the PSH TCP flag and also sends data in the outgoing buffer immediately.
void listen()
Starts listening on the local port indicated by the localPort property.
void connect()
Initiates a TCP connection to remoteIP and remotePort.
Maintains a state variable and allows to pull out a state string representation for debugging...
Implements the TCP protocol.
Base class for TCP and UDP sockets.
TCP flags data structure.
void terminate()
Immediately shuts down the socket and makes it available for a new task.
virtual void onTerminate()
Called when the socket is ready to be reused.
void close()
Attempts to gracefully close a connection.
void accept()
Accepts a connection request that has been received on the port this instance was listening on ...
virtual void onReceive(uint16_t len, const byte *data)
Called for each data packet received
virtual void onClose()
Fires when the other party closed the incoming end of the connection because it has no more data to s...