MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // /secure/telnetneg.h -- Definitionen und Prototypes fuer Telnet-Negotiations |
| 4 | // |
| 5 | // $Id: telnetneg.h,v 1.1 2003/02/17 11:20:02 Rikus Exp $ |
| 6 | |
| 7 | #ifndef _SECURE_TELNETNEG_H_ |
| 8 | #define _SECURE_TELNETNEG_H_ |
| 9 | // Dies ist vermutlich der einzige Teil, den andere (z.B. player/base.h) |
| 10 | // brauchen... |
| 11 | // Properties fuer die tatsaechliche Fenstergroesse des Telnetclients sowie |
| 12 | // den eingestellten Terminaltyp. Falls der Client die Daten nicht |
| 13 | // herausrueckt, bleiben die Properties leer. |
| 14 | #define P_TTY "tty" |
| 15 | #define P_TTY_COLS "tty_cols" |
| 16 | #define P_TTY_ROWS "tty_rows" |
| 17 | #define P_TTY_TYPE "tty_type" |
| 18 | #define P_TTY_SHOW "tty_show" |
| 19 | #define P_TELNET_RTTIME "p_lib_telnet_rttime" |
| 20 | |
| 21 | #endif |
| 22 | |
| 23 | |
| 24 | #ifdef NEED_PROTOTYPES |
| 25 | #ifndef _SECURE_TELNETNEG_H_PROTOS_ |
| 26 | #define _SECURE_TELNETNEG_H_PROTOS_ |
| 27 | // wird eigentlich nur fuer die Implementation gebraucht |
| 28 | #include "/sys/telnet.h" |
| 29 | |
| 30 | // Konstanten fuer die jew. remote und local handler |
| 31 | #define LOCALON WILL |
| 32 | #define LOCALOFF WONT |
| 33 | #define REMOTEON DO |
| 34 | #define REMOTEOFF DONT |
| 35 | |
| 36 | protected int bind_telneg_handler(int option, closure re, closure lo, |
| 37 | int initneg); |
| 38 | protected int do_telnet_neg(int option, int action); |
| 39 | protected varargs int send_telnet_neg(int *arr, int bm_flags); |
| 40 | protected varargs int send_telnet_neg_str(string str, int bm_flags); |
| 41 | |
| 42 | #endif // _SECURE_TELNETNEG_H_PROTOS_ |
| 43 | #endif // NEED_PROTOTYPES |
| 44 | |