00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _EGG_MOD_TELNETPARTY_TELNETPARTY_H_
00023 #define _EGG_MOD_TELNETPARTY_TELNETPARTY_H_
00024
00025
00026 #define STATE_RESOLVE 0
00027 #define STATE_NICKNAME 1
00028 #define STATE_PASSWORD 2
00029 #define STATE_PARTYLINE 3
00030
00031
00032 #define TELNET_ECHO 1
00033 #define TELNET_AYT 246
00034 #define TELNET_WILL 251
00035 #define TELNET_WONT 252
00036 #define TELNET_DO 253
00037 #define TELNET_DONT 254
00038 #define TELNET_CMD 255
00039
00040 #define TELNET_ECHO_OFF "\377\373\001"
00041 #define TELNET_ECHO_ON "\377\374\001"
00042
00043
00044 #define STEALTH_LOGIN 1
00045 #define TFLAG_ECHO 2
00046 #define TFLAG_PASSWORD 4
00047
00048 typedef struct {
00049 int idx;
00050
00051
00052 partymember_t *party;
00053
00054
00055 user_t *user;
00056 char *nick, *ident, *host, *ip;
00057 int port;
00058 int pid;
00059
00060
00061 int flags;
00062
00063
00064 int state, count;
00065 int ident_id, dns_id;
00066 } telnet_session_t;
00067
00068 typedef struct {
00069 char *vhost;
00070 int port;
00071 int stealth;
00072 int max_retries;
00073 } telnet_config_t;
00074
00075 extern telnet_config_t telnet_config;
00076
00077 #endif