handlers.h
author viric@llimona
Mon, 24 Sep 2007 13:59:40 +0200
changeset 38 f1e581c862d5
parent 36 da427c23d755
child 43 625794738afc
permissions -rw-r--r--
Improved help. Moving to 0.2.

typedef void (*Net_c_prepare_read_fdset)(fd_set *read_set, int *maxfd);
/* Send -1 on eof */
typedef int (*Net_c_process_read_fdset)(fd_set *read_set);
typedef void (*Net_c_send)(const char *buf, int len);

/* unix_server.c */
void s_unix_update_served(int new);
void s_unix_shutdown();
void s_unix_prepare_read_fdset(fd_set *read_set, int *maxfd);
void s_unix_process_read_fdset(fd_set *read_set);
void get_unix_path();
void s_unix_send_to_connected(const char *buffer, size_t size);

/* app_control.c */
void app_control_start();
void app_control_shutdown();
void app_control_prepare_read_fdset(fd_set *read_set, int *maxfd);
int  app_control_process_read_fdset(fd_set *read_set);
void app_control_remote_send_to_stdin(const char *buffer, size_t size);
void app_control_local_send_to_stdin(const char *buffer, size_t size);

/* unix_client.c */
void c_unix_connect_socket();
/* Send -1 on eof */
void c_unix_prepare_read_fdset(fd_set *read_set, int *maxfd);
int c_unix_process_read_fdset(fd_set *read_set);
void c_unix_send(const char *buf, int len);

/* client_term.c */
void send_to_client_stdout(const char *buf, int len);

/* tcp_server.c */
void s_tcp_update_served(int new);
void s_tcp_shutdown();
void s_tcp_prepare_read_fdset(fd_set *read_set, int *maxfd);
void s_tcp_process_read_fdset(fd_set *read_set);
void s_tcp_send_to_connected(const char *buffer, size_t size);