github.com/cptmikhailov/conmon@v2.0.20+incompatible/src/conn_sock.h (about) 1 #if !defined(CONN_SOCK_H) 2 #define CONN_SOCK_H 3 4 #include <glib.h> /* gboolean */ 5 #include "config.h" /* CONN_SOCK_BUF_SIZE */ 6 7 /* Used for attach */ 8 struct conn_sock_s { 9 int fd; 10 gboolean data_ready; 11 gboolean readable; 12 gboolean writable; 13 size_t remaining; 14 size_t off; 15 char buf[CONN_SOCK_BUF_SIZE]; 16 }; 17 18 char *setup_console_socket(void); 19 char *setup_attach_socket(void); 20 void conn_sock_shutdown(struct conn_sock_s *sock, int how); 21 void schedule_main_stdin_write(); 22 23 #endif // CONN_SOCK_H