18 #include <sys/termios.h>
115 #define MONITOR_LEN 8
116 #define TRIPTIME_LEN 9
135 #define _keys_non_blocking_stop(kh) \
136 tcsetattr(0, TCSANOW, &kh->initial_settings); \
KSNet mesh core data.
Definition: net_core.h:38
ksnetHotkeysClass * ksnetHotkeysInit(void *ke)
Initialize hot keys module.
Definition: hotkeys.c:604
int peer_m
Show peer mode: 0 - single; 1 - continously.
Definition: hotkeys.h:91
ksnCoreClass * kn
Definition: hotkeys.h:33
ev_io stdin_w
STDIN watcher.
Definition: hotkeys.h:106
int tr_udp_m
Show tr-udp mode: 0 - single; 1 - continously.
Definition: hotkeys.h:92
struct monitor_timer_data monitor_timer_data
Monitor timer data.
struct peer_timer_data peer_timer_data
Peer timer data.
struct ev_loop * loop
Definition: hotkeys.h:43
ev_timer w
Definition: hotkeys.h:45
#define KSN_BUFFER_SM_SIZE
Size of small buffer for string.
Definition: conf.h:16
void ksnetHotkeysDestroy(ksnetHotkeysClass *kh)
De-initialize hot key module.
Definition: hotkeys.c:654
int non_blocking
Non blocking mode: 1 - non-blocking.
Definition: hotkeys.h:84
Monitor timer data.
Definition: hotkeys.h:41
size_t peer_name_len
Definition: hotkeys.h:31
struct ksnetHotkeysClass ksnetHotkeysClass
Hot keys class data.
tr_udp_timer_data * put
Hotkey Peer timer data.
Definition: hotkeys.h:104
int num_lines
Definition: hotkeys.h:56
int last_hotkey
Last hotkey.
Definition: hotkeys.h:94
void * ke
Definition: hotkeys.h:83
struct termios initial_settings new_settings
Keybord settings.
Definition: hotkeys.h:88
unsigned char teoLogCheck(void *ke, void *log)
Definition: hotkeys.c:99
void teoHotkeySetFilter(ksnetHotkeysClass *hotkeys, char *filter)
Definition: hotkeys.c:81
Peer timer data.
Definition: hotkeys.h:67
struct ev_loop * loop
Definition: hotkeys.h:32
ev_timer tw
Definition: hotkeys.h:57
ksnCoreClass * kn
Definition: hotkeys.h:44
struct tr_udp_timer_data tr_udp_timer_data
TR UDP timer data.
ksnCoreClass * kn
Definition: hotkeys.h:70
Hot keys class data.
Definition: hotkeys.h:81
monitor_timer_data * mt
Hotkey Monitor timer data.
Definition: hotkeys.h:102
ev_timer tw
Definition: hotkeys.h:72
struct ping_timer_data ping_timer_data
File: hotkeys.h Author: Kirill Scherba kirill@scherba.ru
char str[4][KSN_BUFFER_SM_SIZE]
Strings.
Definition: hotkeys.h:96
const char * TRIPTIME
Definition: hotkeys.c:64
size_t num
Definition: hotkeys.h:59
ksnCoreClass * kc
Definition: hotkeys.h:55
ping_timer_data * pt
Hotkey Pinger timer data.
Definition: hotkeys.h:101
unsigned filter_f
Definition: hotkeys.h:98
const char * MONITOR
Definition: hotkeys.c:63
ev_idle iw
Definition: hotkeys.h:58
ev_idle iw
Definition: hotkeys.h:73
char * filter
Definition: hotkeys.h:99
int str_number
Nuber of current string.
Definition: hotkeys.h:95
const char * PING
Definition: hotkeys.c:61
int num_lines
Definition: hotkeys.h:71
unsigned char teoFilterFlagCheck(void *ke)
Definition: hotkeys.c:88
ev_idle idle_stdin_w
Idle STDIN watcher.
Definition: hotkeys.h:107
int wait_y
Wait y (yes) mode.
Definition: hotkeys.h:90
void _keys_non_blocking_start(ksnetHotkeysClass *kh)
Start keyboard non-blocking mode.
Definition: hotkeys.c:581
char * peer_name
Definition: hotkeys.h:30
ev_timer w
Definition: hotkeys.h:34
struct ev_loop * loop
Definition: hotkeys.h:69
TR UDP timer data.
Definition: hotkeys.h:52
peer_timer_data * pet
Hotkey Peer timer data.
Definition: hotkeys.h:103
struct ev_loop * loop
Definition: hotkeys.h:54
File: hotkeys.h Author: Kirill Scherba kirill@scherba.ru
Definition: hotkeys.h:28
int tr_udp_queues_m
Show tr-udp queues mode: 0 - single; 1 - continously.
Definition: hotkeys.h:93
const char * TRACE
Definition: hotkeys.c:62