45 static const uint32_t DEFAULT_BUFFER_SIZE;
47 PxSocket(
bool inEnableBuffering =
true,
bool blocking =
true);
66 bool connect(
const char* host, uint16_t port, uint32_t timeout = 1000);
74 bool listen(uint16_t port);
88 bool accept(
bool block);
101 bool isConnected()
const;
110 const char* getHost()
const;
119 uint16_t getPort()
const;
147 uint32_t write(
const uint8_t* data, uint32_t length);
162 uint32_t read(uint8_t* data, uint32_t length);
168 void setBlocking(
bool blocking);
176 bool isBlocking()
const;
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39