📄 pipe.h
字号:
#ifndef PIPE_H#define PIPE_H#include "sio.h"#include "sock.h"#include "thread.h"typedef struct{ /* Serial port */ sio_s sio; /* Socket */ tcpsock_s sock; /* Mutex lock */ thr_mutex_t *mutex; /* Time out in seconds */ int timeout;} pipe_s;int pipe_init(pipe_s *pipe, int sock_port);void pipe_cleanup(pipe_s *pipe);void pipe_destroy(void *data);#endif /* PIPE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -