Add sockets support & dump to file

This commit is contained in:
Edward Emelianov
2022-02-01 21:53:31 +03:00
parent c03d11e7b6
commit c8028d6156
9 changed files with 506 additions and 79 deletions

View File

@@ -19,22 +19,14 @@
#ifndef NCURSES_AND_READLINE_H__
#define NCURSES_AND_READLINE_H__
#include <pthread.h>
#include <usefull_macros.h>
typedef struct{
TTY_descr *dev;
pthread_mutex_t mutex;
char eol[3];
char seol[5];
int eollen;
} ttyd;
#include "dbg.h"
#include "ttysocket.h"
void init_readline();
void deinit_readline();
void init_ncurses();
void deinit_ncurses();
void *cmdline(void* arg);
void add_ttydata(const char *text);
void ShowData(const char *text);
#endif // NCURSES_AND_READLINE_H__