Asynchronous puzzle box socket connection.
More...
#include <sock.h>
|
| PBSocket (const char *addr, uint16_t port) |
| Constructor that immediately calls set_server()
|
|
void | set_server (const char *addr, uint16_t port) |
| Configure target server.
|
|
void | sock_connect () |
| Attempt to connect to server and start sock_task() in a thread.
|
|
void | send (const char *buf, size_t buf_sz) |
| Send data over the TCP connection.
|
|
- Note
- Once connected, this class will call
i2c_recv()
when a complete I²C message has been received
◆ send()
void PBSocket::send |
( |
const char * | buf, |
|
|
size_t | buf_sz ) |
- Parameters
-
buf | Data to send |
buf_sz | Size of buf in bytes |
The documentation for this class was generated from the following files: