T-Box Basic dev
Loading...
Searching...
No Matches
log_transport.h
Go to the documentation of this file.
1
10
11#ifndef __TBOX_LOG_TRANSPORT_H__
12#define __TBOX_LOG_TRANSPORT_H__
13
14#include <stddef.h>
15
22int tbox_log_transport_init(const char* socket_path);
23
28
39int tbox_log_transport_send(const void* data, size_t len, void* response, size_t response_size, size_t* response_len);
40
41#endif /* __TBOX_LOG_TRANSPORT_H__ */
void tbox_log_transport_deinit(void)
释放日志客户端传输层资源。
int tbox_log_transport_init(const char *socket_path)
初始化日志客户端传输层。
int tbox_log_transport_send(const void *data, size_t len, void *response, size_t response_size, size_t *response_len)
发送一条协议消息,并按需接收响应。