3#ifndef DETERMINISTICESPASYNCWEBSERVER_DET_CLIENT_H
4#define DETERMINISTICESPASYNCWEBSERVER_DET_CLIENT_H
37int det_client_open(
const char *host, uint16_t port, uint32_t timeout_ms);
User-facing configuration for DeterministicESPAsyncWebServer.
bool det_client_connected(int cid)
True once the TCP handshake has completed for cid.
bool det_client_send(int cid, const void *data, size_t len)
Queue len wire bytes for transmission (marshaled tcp_write + output).
size_t det_client_available(int cid)
Wire bytes currently buffered and ready to read.
bool det_client_is_closed(int cid)
True once the peer closed (FIN) or the connection errored.
void det_client_close(int cid)
Tear down the connection (marshaled) and return the slot to the pool.
size_t det_client_read(int cid, uint8_t *buf, size_t cap)
Drain up to cap buffered wire bytes into buf; returns the count.
int det_client_open(const char *host, uint16_t port, uint32_t timeout_ms)
Resolve host (dotted-quad fast path, else DNS) and connect to host : port, blocking up to timeout_ms.