17 lines
397 B
C
17 lines
397 B
C
#ifndef TCP_DEBUG_H
|
|
#define TCP_DEBUG_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
/**
|
|
* Initializes the TCP debug server on port 4242.
|
|
* Registers a stdio driver that redirects printf output to connected TCP clients.
|
|
* Returns true on success.
|
|
*/
|
|
bool tcp_debug_init(void);
|
|
|
|
typedef void (*tcp_connection_callback_t)(bool connected);
|
|
void tcp_set_connection_callback(tcp_connection_callback_t callback);
|
|
|
|
#endif
|