- inserted possiblity to send spy commands when busy
- general enhancements of six
This commit is contained in:
12
tecs/term.h
12
tecs/term.h
@@ -3,16 +3,20 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void term_reg_socket(int fd);
|
||||
void term_reg_socket(int socket);
|
||||
/* register socket */
|
||||
|
||||
void term_unr_socket(int fd);
|
||||
void term_unr_socket(int socket);
|
||||
/* unregister socket */
|
||||
|
||||
int term_raw_key(char *key, int msecTmo);
|
||||
|
||||
int term_wait_fd(int fd, int msecTmo);
|
||||
/* wait for a read event on fd or timeout */
|
||||
int term_wait_socket(int socket, int msecTmo);
|
||||
/* wait for a read event on socket or timeout
|
||||
special case socket=0: wait for a read event on any socket
|
||||
return socket number
|
||||
or 0 for timeout
|
||||
*/
|
||||
|
||||
int term_get_key(char *key, int msecTmo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user