MeshTalos-Client/main/tcphelper.h
pictures2333 0f80116be2 tmp
2025-12-31 14:51:35 +08:00

23 lines
No EOL
405 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
// functions
int socket_send(const char *tag, const int sock, const char * data, const size_t len);
int try_receive(const char *tag, const int sock, char * data, size_t max_len);
void tcp_initialize(void);
#if CONFIG_TCP_ROOT == 1
void start_tcp_server(void);
#else
void start_tcp_client(void);
#endif
#ifdef __cplusplus
}
#endif