2 * Header declaring Telnet-handling functions.
\r
5 #ifndef FIXME_TELNET_H
\r
6 #define FIXME_TELNET_H
\r
10 typedef struct telnet_tag *Telnet;
\r
13 char **envvars; /* array of "VAR=value" terms */
\r
19 * Create and destroy a Telnet structure.
\r
21 Telnet telnet_new(sel_wfd *net, sel_wfd *pty);
\r
22 void telnet_free(Telnet telnet);
\r
25 * Process data read from the pty.
\r
27 void telnet_from_pty(Telnet telnet, char *buf, int len);
\r
30 * Process Telnet protocol data received from the network.
\r
32 void telnet_from_net(Telnet telnet, char *buf, int len);
\r
35 * Return true if pre-shell-startup negotiations are complete and
\r
36 * it's safe to start the shell subprocess now. On a true return,
\r
37 * also fills in the shell_data structure.
\r
39 int telnet_shell_ok(Telnet telnet, struct shell_data *shdata);
\r
41 #endif /* FIXME_TELNET_H */
\r