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