/* Status and error notification routines */
bool status_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
/* Status and error notification routines */
bool status_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
- return send_request(mesh, c, "%d", PING);
+ return send_request(mesh, c, NULL, "%d", PING);
return send_pong(mesh, c);
}
bool send_pong(meshlink_handle_t *mesh, connection_t *c) {
return send_pong(mesh, c);
}
bool send_pong(meshlink_handle_t *mesh, connection_t *c) {
- return send_request(mesh, c, "%d", PONG);
+ return send_request(mesh, c, NULL, "%d", PONG);
/* Sending and receiving packets via TCP */
bool tcppacket_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
/* Sending and receiving packets via TCP */
bool tcppacket_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {