23 lines
No EOL
405 B
C
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 |