32 #include "api/WiconnectTypes.h"
46 WiconnectSocket(
int rxBufferLen = 0,
void *rxBuffer = NULL,
int txBufferLen = 0,
void *txBuffer = NULL);
51 WiconnectResult write(
const void* buffer,
int length,
bool flush =
true);
53 WiconnectResult read(
void* buffer, uint16_t maxLength, uint16_t *bytesRead);
54 WiconnectResult read(uint8_t **bufferPtr = NULL, uint16_t *bytesReadPtr = NULL);
62 uint8_t *getTxBuffer();
63 int getTxBufferSize();
64 int getTxBufferBytesPending();
65 uint8_t *getRxBuffer();
66 int getRxBufferSize();
67 int getRxBufferBytesPending();
71 const char* getHost();
72 uint16_t getLocalPort();
73 uint16_t getRemotePort();
WiconnectResult
API Result code.
The provides an interface for http://goHACK.me.
#define WICONNECT_MAX_HOST_SIZE
The maximum server string length.
Connection object to remote server.
The provides an interface for creating TCP/UDP/TLS/HTTP client sockets. A client socket connects to a...
The root WiConnect library class. This class inheriets all WiConnect functionality.