handlers.h
author viric@llimona
Thu, 27 Sep 2007 00:25:54 +0200
changeset 58 2cf8c513d18f
parent 43 625794738afc
child 66 b2469563a1dc
permissions -rw-r--r--
added authors.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
     1
typedef void (*Net_c_prepare_read_fdset)(fd_set *read_set, int *maxfd);
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
     2
/* Send -1 on eof */
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
     3
typedef int (*Net_c_process_read_fdset)(fd_set *read_set);
43
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
     4
typedef void (*Net_c_send)(const char *buf, size_t len);
24
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
     5
21
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
     6
/* unix_server.c */
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
     7
void s_unix_update_served(int new);
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
     8
void s_unix_shutdown();
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
     9
void s_unix_prepare_read_fdset(fd_set *read_set, int *maxfd);
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    10
void s_unix_process_read_fdset(fd_set *read_set);
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    11
void get_unix_path();
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    12
void s_unix_send_to_connected(const char *buffer, size_t size);
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    13
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    14
/* app_control.c */
36
da427c23d755 Added dumps, telnet_filter, applied filters in tm, improved telnet experience.
viric@llimona
parents: 33
diff changeset
    15
void app_control_start();
21
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    16
void app_control_shutdown();
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    17
void app_control_prepare_read_fdset(fd_set *read_set, int *maxfd);
a82c88322eb5 Big change, from stdinmix to multiterminal.
viric@llimona
parents:
diff changeset
    18
int  app_control_process_read_fdset(fd_set *read_set);
32
df110f784648 Added read-only clients, added stdin-close option to clients.
lbatlle@npdl268.bpo.hp.com
parents: 24
diff changeset
    19
void app_control_remote_send_to_stdin(const char *buffer, size_t size);
df110f784648 Added read-only clients, added stdin-close option to clients.
lbatlle@npdl268.bpo.hp.com
parents: 24
diff changeset
    20
void app_control_local_send_to_stdin(const char *buffer, size_t size);
23
b3e6c6ffc69c Moving the client out.
viric@llimona
parents: 21
diff changeset
    21
b3e6c6ffc69c Moving the client out.
viric@llimona
parents: 21
diff changeset
    22
/* unix_client.c */
24
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    23
void c_unix_connect_socket();
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    24
/* Send -1 on eof */
23
b3e6c6ffc69c Moving the client out.
viric@llimona
parents: 21
diff changeset
    25
void c_unix_prepare_read_fdset(fd_set *read_set, int *maxfd);
24
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    26
int c_unix_process_read_fdset(fd_set *read_set);
43
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    27
void c_unix_send(const char *buf, size_t len);
24
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    28
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    29
/* client_term.c */
03ddd5ab560b Moving to modules.
viric@llimona
parents: 23
diff changeset
    30
void send_to_client_stdout(const char *buf, int len);
33
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    31
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    32
/* tcp_server.c */
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    33
void s_tcp_update_served(int new);
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    34
void s_tcp_shutdown();
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    35
void s_tcp_prepare_read_fdset(fd_set *read_set, int *maxfd);
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    36
void s_tcp_process_read_fdset(fd_set *read_set);
010af11f521e Raw implementation for tcp.
lbatlle@npdl268.bpo.hp.com
parents: 32
diff changeset
    37
void s_tcp_send_to_connected(const char *buffer, size_t size);
43
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    38
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    39
/* eth_server.c */
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    40
void s_eth_init();
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    41
void s_eth_shutdown();
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    42
void s_eth_prepare_read_fdset(fd_set *read_set, int *maxfd);
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    43
void s_eth_process_read_fdset(fd_set *read_set);
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    44
void s_eth_send_to_connected(const char *buffer, size_t size);
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    45
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    46
/* eth_server.c */
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    47
void c_eth_init();
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    48
void c_eth_shutdown();
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    49
void c_eth_prepare_read_fdset(fd_set *read_set, int *maxfd);
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    50
int  c_eth_process_read_fdset(fd_set *read_set);
625794738afc Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents: 36
diff changeset
    51
void c_eth_send_to_connected(const char *buffer, size_t size);