31#define UIP_CLIENT_CONNECTED 0x10
32#define UIP_CLIENT_CLOSE 0x20
33#define UIP_CLIENT_REMOTECLOSED 0x40
34#define UIP_CLIENT_RESTART 0x80
35#define UIP_CLIENT_STATEFLAGS (UIP_CLIENT_CONNECTED | UIP_CLIENT_CLOSE | UIP_CLIENT_REMOTECLOSED | UIP_CLIENT_RESTART)
36#define UIP_CLIENT_SOCKETS ~UIP_CLIENT_STATEFLAGS
47} uip_userdata_closed_t;
63#if UIP_CLIENT_TIMER >= 0
67 uint32_t restartInterval;
68#if UIP_CONNECTION_TIMEOUT > 0
69 uint32_t connectTimeout;
70 uint32_t connectTimer;
83 int connect(IPAddress ip, uint16_t port);
93 int connect(
const char* host, uint16_t port);
102 int read(uint8_t* buf,
size_t size);
122 size_t write(uint8_t);
125 size_t write(
const uint8_t* buf,
size_t size);
168 uip_userdata_t* data;
170 static int _available(uip_userdata_t*);
172 static uip_userdata_t* _allocateData();
173 static size_t _write(uip_userdata_t*,
const uint8_t* buf,
size_t size);
179 friend void uip_log(
char* msg);
struct __attribute__((__packed__))
virtual bool operator==(const EthernetClient &)
int connect(IPAddress ip, uint16_t port)
static uip_userdata_t all_data[UIP_CONNS]
int waitAvailable(uint32_t timeout=750)
virtual bool operator!=(const EthernetClient &rhs)
friend void serialip_appcall(void)
friend void uip_log(char *msg)
#define OUTPUT_BUFFER_SIZE
#define UIP_SOCKET_NUMPACKETS