| 1 | /* |
| 2 | * Copyright (C) 1998,1999,2000,2001 Ross Combs ([email protected]) |
| 3 | * Copyright (C) 2000,2001 Marco Ziech ([email protected]) |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | #ifndef INCLUDED_CONNECTION_TYPEScxx . . $ `/build/tmp.prHwK0hYwT/package/src/bnetd/connection.h:20:9`! |
| 20 | #define INCLUDED_CONNECTION_TYPEScxx . . $ `src/bnetd/connection.h:20:9`! |
| 21 | |
| 22 | #ifdef CONNECTION_INTERNAL_ACCESScxx . . $ `src/bnetd/connection.cpp:20:9`! |
| 23 | |
| 24 | #include <ctime> |
| 25 | |
| 26 | #ifdef JUST_NEED_TYPES |
| 27 | # include "game.h" |
| 28 | # include "channel.h" |
| 29 | # include "account.h" |
| 30 | # include "quota.h" |
| 31 | # include "character.h" |
| 32 | # include "versioncheck.h" |
| 33 | # include "anongame.h" |
| 34 | # include "anongame_wol.h" |
| 35 | # include "realm.h" |
| 36 | # include "common/queue.h" |
| 37 | # include "common/tag.h" |
| 38 | # include "common/elist.h" |
| 39 | # include "common/packet.h" |
| 40 | # include "common/rcm.h" |
| 41 | #else |
| 42 | # define JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:42:10`! |
| 43 | # include "game.h"cxx . . $ `<file>/src/bnetd/game.h`/ |
| 44 | # include "channel.h"cxx . . $ `<file>/src/bnetd/channel.h`/ |
| 45 | # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 46 | # include "quota.h"cxx . . $ `<file>/src/bnetd/quota.h`/ |
| 47 | # include "character.h"cxx . . $ `<file>/src/bnetd/character.h`/ |
| 48 | # include "versioncheck.h"cxx . . $ `<file>/src/bnetd/versioncheck.h`/ |
| 49 | # include "anongame.h"cxx . . $ `<file>/src/bnetd/anongame.h`/ |
| 50 | # include "anongame_wol.h"cxx . . $ `<file>/src/bnetd/anongame_wol.h`/ |
| 51 | # include "realm.h"cxx . . $ `<file>/src/bnetd/realm.h`/ |
| 52 | # include "common/queue.h"cxx . . $ `<file>/src/common/queue.h`/ |
| 53 | # include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 54 | # include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/ |
| 55 | # include "common/packet.h"cxx . . $ `<file>/src/common/packet.h`/ |
| 56 | # include "common/rcm.h"cxx . . $ `<file>/src/common/rcm.h`/ |
| 57 | # undef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:42:10`! |
| 58 | #endif |
| 59 | |
| 60 | #endif |
| 61 | |
| 62 | namespace pvpgncxx . . $ pvpgn/ |
| 63 | { |
| 64 | |
| 65 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 66 | { |
| 67 | |
| 68 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_c6d71fab61eec20e_0# |
| 69 | { |
| 70 | conn_class_initcxx . . $ pvpgn/bnetd/conn_class_init., |
| 71 | conn_class_bnetcxx . . $ pvpgn/bnetd/conn_class_bnet., |
| 72 | conn_class_filecxx . . $ pvpgn/bnetd/conn_class_file., |
| 73 | conn_class_botcxx . . $ pvpgn/bnetd/conn_class_bot., |
| 74 | conn_class_telnetcxx . . $ pvpgn/bnetd/conn_class_telnet., |
| 75 | conn_class_ircinitcxx . . $ pvpgn/bnetd/conn_class_ircinit., /* IRC based protocol INIT*/ |
| 76 | conn_class_irccxx . . $ pvpgn/bnetd/conn_class_irc., /* Internet Relay Chat */ |
| 77 | conn_class_wolcxx . . $ pvpgn/bnetd/conn_class_wol., /* Westwood Chat and Game protocol (IRC based) */ |
| 78 | conn_class_wservcxx . . $ pvpgn/bnetd/conn_class_wserv., /* Westwood servserv (IRC based) */ |
| 79 | conn_class_wgamerescxx . . $ pvpgn/bnetd/conn_class_wgameres., /* Westwood Gameresolution */ |
| 80 | conn_class_wladdercxx . . $ pvpgn/bnetd/conn_class_wladder., /* Westwood Ladder server */ |
| 81 | conn_class_apiregcxx . . $ pvpgn/bnetd/conn_class_apireg., /* Westwood API Register */ |
| 82 | conn_class_d2cs_bnetdcxx . . $ pvpgn/bnetd/conn_class_d2cs_bnetd., |
| 83 | conn_class_w3routecxx . . $ pvpgn/bnetd/conn_class_w3route., |
| 84 | conn_class_nonecxx . . $ pvpgn/bnetd/conn_class_none. |
| 85 | } t_conn_classcxx . . $ pvpgn/bnetd/t_conn_class#; |
| 86 | |
| 87 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_c6d71fab61eec20e_1# |
| 88 | { |
| 89 | conn_state_emptycxx . . $ pvpgn/bnetd/conn_state_empty., |
| 90 | conn_state_initialcxx . . $ pvpgn/bnetd/conn_state_initial., |
| 91 | conn_state_connectedcxx . . $ pvpgn/bnetd/conn_state_connected., |
| 92 | conn_state_loggedincxx . . $ pvpgn/bnetd/conn_state_loggedin., |
| 93 | conn_state_destroycxx . . $ pvpgn/bnetd/conn_state_destroy., |
| 94 | conn_state_bot_usernamecxx . . $ pvpgn/bnetd/conn_state_bot_username., |
| 95 | conn_state_bot_passwordcxx . . $ pvpgn/bnetd/conn_state_bot_password., |
| 96 | conn_state_untrustedcxx . . $ pvpgn/bnetd/conn_state_untrusted., |
| 97 | conn_state_pending_rawcxx . . $ pvpgn/bnetd/conn_state_pending_raw. |
| 98 | } t_conn_statecxx . . $ pvpgn/bnetd/t_conn_state#; |
| 99 | |
| 100 | #ifdef CONNECTION_INTERNAL_ACCESScxx . . $ `src/bnetd/connection.cpp:20:9`! |
| 101 | typedef enumcxx . . $ pvpgn/bnetd/$anonymous_type_c6d71fab61eec20e_2# |
| 102 | { |
| 103 | conn_flags_welcomedcxx . . $ pvpgn/bnetd/conn_flags_welcomed. = 0x01, |
| 104 | conn_flags_udpokcxx . . $ pvpgn/bnetd/conn_flags_udpok. = 0x02, |
| 105 | conn_flags_joingamewhispercxx . . $ pvpgn/bnetd/conn_flags_joingamewhisper. = 0x04, |
| 106 | conn_flags_leavegamewhispercxx . . $ pvpgn/bnetd/conn_flags_leavegamewhisper. = 0x08, |
| 107 | conn_flags_echobackcxx . . $ pvpgn/bnetd/conn_flags_echoback. = 0x10 |
| 108 | |
| 109 | } t_conn_flagscxx . . $ pvpgn/bnetd/t_conn_flags#; |
| 110 | |
| 111 | #endif |
| 112 | |
| 113 | typedef struct connectioncxx . . $ pvpgn/bnetd/connection# |
| 114 | #ifdef CONNECTION_INTERNAL_ACCESScxx . . $ `src/bnetd/connection.cpp:20:9`! |
| 115 | { |
| 116 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3# { |
| 117 | int tcp_sockcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#tcp_sock.; |
| 118 | unsigned int tcp_addrcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#tcp_addr.; |
| 119 | unsigned short tcp_portcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#tcp_port.; |
| 120 | int udp_sockcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#udp_sock.; |
| 121 | unsigned int udp_addrcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#udp_addr.; |
| 122 | unsigned short udp_portcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#udp_port.; |
| 123 | unsigned int local_addrcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#local_addr.; |
| 124 | unsigned short local_portcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#local_port.; |
| 125 | unsigned int real_local_addrcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#real_local_addr.; |
| 126 | unsigned short real_local_portcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#real_local_port.; |
| 127 | int fdw_idxcxx . . $ pvpgn/bnetd/connection#$anonymous_type_3#fdw_idx.; |
| 128 | } socketcxx . . $ pvpgn/bnetd/connection#socket.; /* IP and socket specific data */ |
| 129 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4# { |
| 130 | t_conn_classcxx . . $ pvpgn/bnetd/t_conn_class# cclasscxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#cclass.; |
| 131 | t_conn_statecxx . . $ pvpgn/bnetd/t_conn_state# statecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#state.; |
| 132 | unsigned int sessionkeycxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#sessionkey.; |
| 133 | unsigned int sessionnumcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#sessionnum.; |
| 134 | unsigned int secretcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#secret.; /* random number... never sent over net unencrypted */ |
| 135 | unsigned int flagscxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#flags.; |
| 136 | unsigned int latencycxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#latency.; |
| 137 | t_accountcxx . . $ pvpgn/bnetd/t_account# * accountcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#account.; |
| 138 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5# { |
| 139 | t_tagcxx . . $ pvpgn/t_tag# archtagcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#archtag.; |
| 140 | t_tagcxx . . $ pvpgn/t_tag# gamelangcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#gamelang.; |
| 141 | t_clienttagcxx . . $ pvpgn/t_clienttag# clienttagcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#clienttag.; |
| 142 | char const * clientvercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#clientver.; |
| 143 | unsigned long versionidcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#versionid.; /* AKA bnversion */ |
| 144 | unsigned long gameversioncxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#gameversion.; |
| 145 | unsigned long checksumcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#checksum.; |
| 146 | char const * countrycxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#country.; |
| 147 | int tzbiascxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#tzbias.; |
| 148 | char const * hostcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#host.; |
| 149 | char const * usercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#user.; |
| 150 | char const * clientexecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#clientexe.; |
| 151 | char const * ownercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#owner.; |
| 152 | char const * cdkeycxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#cdkey.; |
| 153 | const VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck# *versioncheckcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_5#versioncheck.; |
| 154 | } clientcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#client.; /* client program specific data */ |
| 155 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6# { |
| 156 | t_queue * outqueuecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6#outqueue.; /* packets waiting to be sent */ |
| 157 | unsigned int outsizecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6#outsize.; /* amount sent from the current output packet */ |
| 158 | unsigned int outsizepcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6#outsizep.; |
| 159 | t_packetcxx . . $ pvpgn/t_packet# * inqueuecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6#inqueue.; /* packet waiting to be processed */ |
| 160 | unsigned int insizecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_6#insize.; /* amount received into the current input packet */ |
| 161 | } queuescxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#queues.; /* network queues and related data */ |
| 162 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7# { |
| 163 | t_channelcxx . . $ pvpgn/bnetd/t_channel# * channelcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#channel.; |
| 164 | char const * tmpOP_channelcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#tmpOP_channel.; |
| 165 | char const * tmpVOICE_channelcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#tmpVOICE_channel.; |
| 166 | char const * awaycxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#away.; |
| 167 | char const * dndcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#dnd.; |
| 168 | t_accountcxx . . $ pvpgn/bnetd/t_account# * * ignore_listcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#ignore_list.; |
| 169 | unsigned int ignore_countcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#ignore_count.; |
| 170 | t_quotacxx . . $ pvpgn/bnetd/t_quota# quotacxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#quota.; |
| 171 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# last_messagecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#last_message.; |
| 172 | char const * lastsendercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#lastsender.; /* last person to whisper to this connection */ |
| 173 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#$anonymous_type_8# { |
| 174 | char const * irclinecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#$anonymous_type_8#ircline.; /* line cache for IRC connections */ |
| 175 | unsigned int ircpingcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#$anonymous_type_8#ircping.; /* value of last ping */ |
| 176 | char const * ircpasscxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#$anonymous_type_8#ircpass.; /* hashed password for PASS authentication */ |
| 177 | } irccxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_7#irc.; /* irc chat specific data */ |
| 178 | } chatcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#chat.; /* chat and messages specific data */ |
| 179 | t_game * gamecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#game.; |
| 180 | const char * loggedusercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#loggeduser.; /* username as logged in or given (not taken from account) */ |
| 181 | struct connectioncxx . . $ pvpgn/bnetd/connection# * boundcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#bound.; /* matching Diablo II auth connection */ |
| 182 | t_elistcxx . . $ pvpgn/t_elist# timerscxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#timers.; /* cached list of timers for cleaning */ |
| 183 | /* FIXME: this d2/w3 specific data could be unified into an union */ |
| 184 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9# { |
| 185 | t_realmcxx . . $ pvpgn/bnetd/t_realm# * realmcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9#realm.; |
| 186 | t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# realm_regrefcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9#realm_regref.; |
| 187 | t_character * charactercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9#character.; |
| 188 | char const * realminfocxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9#realminfo.; |
| 189 | char const * charnamecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_9#charname.; |
| 190 | } d2cxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#d2.; |
| 191 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10# { |
| 192 | char const * w3_playerinfocxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#w3_playerinfo.; /* ADDED BY UNDYING SOULZZ 4/7/02 */ |
| 193 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# anongame_search_starttimecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#anongame_search_starttime.; |
| 194 | /* [zap-zero] 20020527 - matching w3route connection for game connection / |
| 195 | matching game connection for w3route connection */ |
| 196 | /* FIXME: this "optimization" is so confusing leading to many possible bugs */ |
| 197 | struct connectioncxx . . $ pvpgn/bnetd/connection# * routeconncxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#routeconn.; |
| 198 | t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * anongamecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#anongame.; |
| 199 | /* those will be filled when recieving 0x53ff and wiped out after 54ff */ |
| 200 | char const * client_proofcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#client_proof.; |
| 201 | char const * server_proofcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_10#server_proof.; |
| 202 | } w3cxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#w3.; |
| 203 | structcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11# { |
| 204 | int ingamecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#ingame.; /* Are we in a game channel? */ |
| 205 | int codepagecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#codepage.; |
| 206 | int findmecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#findme.; /* Allow others to find me? */ |
| 207 | int pagemecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#pageme.; /* Allow others to page me? */ |
| 208 | char const * apgarcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#apgar.; /* WOL User Password (encrypted) */ |
| 209 | t_anongame_wol_playercxx . . $ pvpgn/bnetd/t_anongame_wol_player# * anongame_playercxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#$anonymous_type_11#anongame_player.; |
| 210 | } wolcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#wol.; |
| 211 | stdcxx . . $ std/::time_tcxx . . $ std/time_t# cr_timecxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#cr_time.; |
| 212 | /* Pass fail count for bruteforce protection */ |
| 213 | unsigned int passfail_countcxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#passfail_count.; |
| 214 | /* connection flag substituting some other values */ |
| 215 | unsigned int cflagscxx . . $ pvpgn/bnetd/connection#$anonymous_type_4#cflags.; |
| 216 | } protocolcxx . . $ pvpgn/bnetd/connection#protocol.; |
| 217 | } |
| 218 | #endif |
| 219 | t_connectioncxx . . $ pvpgn/bnetd/t_connection#; |
| 220 | |
| 221 | } |
| 222 | |
| 223 | } |
| 224 | |
| 225 | #endif |
| 226 | |
| 227 | |
| 228 | /*****/ |
| 229 | #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/channel.h:118:9`! |
| 230 | #ifndef INCLUDED_CONNECTION_PROTOS |
| 231 | #define INCLUDED_CONNECTION_PROTOScxx . . $ `src/bnetd/connection.h:231:9`! |
| 232 | |
| 233 | #include <ctime> |
| 234 | |
| 235 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`! |
| 236 | #include "common/packet.h"cxx . . $ `<file>/src/common/packet.h`/ |
| 237 | #include "common/queue.h"cxx . . $ `<file>/src/common/queue.h`/ |
| 238 | #include "channel.h"cxx . . $ `<file>/src/bnetd/channel.h`/ |
| 239 | #include "game.h"cxx . . $ `<file>/src/bnetd/game.h`/ |
| 240 | #include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 241 | #include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 242 | #include "character.h"cxx . . $ `<file>/src/bnetd/character.h`/ |
| 243 | #include "versioncheck.h"cxx . . $ `<file>/src/bnetd/versioncheck.h`/ |
| 244 | #include "timer.h"cxx . . $ `<file>/src/bnetd/timer.h`/ |
| 245 | #include "anongame.h"cxx . . $ `<file>/src/bnetd/anongame.h`/ |
| 246 | #include "anongame_wol.h"cxx . . $ `<file>/src/bnetd/anongame_wol.h`/ |
| 247 | #include "realm.h"cxx . . $ `<file>/src/bnetd/realm.h`/ |
| 248 | #include "message.h"cxx . . $ `<file>/src/bnetd/message.h`/ |
| 249 | #include "common/tag.h"cxx . . $ `<file>/src/common/tag.h`/ |
| 250 | #include "common/fdwatch.h"cxx . . $ `<file>/src/common/fdwatch.h`/ |
| 251 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`! |
| 252 | |
| 253 | #define DESTROY_FROM_CONNLISTcxx . . $ `src/bnetd/connection.h:253:9`! 0 |
| 254 | #define DESTROY_FROM_DEADLISTcxx . . $ `src/bnetd/connection.h:254:9`! 1 |
| 255 | |
| 256 | namespace pvpgncxx . . $ pvpgn/ |
| 257 | { |
| 258 | |
| 259 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 260 | { |
| 261 | |
| 262 | extern t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * conn_create_anongamecxx . . $ pvpgn/bnetd/conn_create_anongame(28581bdaae3fd375).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 263 | extern void conn_destroy_anongamecxx . . $ pvpgn/bnetd/conn_destroy_anongame(428cd989165da3c5).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 264 | |
| 265 | extern t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * conn_get_anongamecxx . . $ pvpgn/bnetd/conn_get_anongame(28581bdaae3fd375).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# *c); |
| 266 | |
| 267 | |
| 268 | extern void conn_shutdowncxx . . $ pvpgn/bnetd/conn_shutdown(9b6c929c3dbc4c93).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, stdcxx . . $ std/::time_tcxx . . $ std/time_t# now, t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data# foo); |
| 269 | extern void conn_test_latencycxx . . $ pvpgn/bnetd/conn_test_latency(9b6c929c3dbc4c93).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, stdcxx . . $ std/::time_tcxx . . $ std/time_t# now, t_timer_datacxx . . $ pvpgn/bnetd/t_timer_data# delta); |
| 270 | extern char const * conn_class_get_strcxx . . $ pvpgn/bnetd/conn_class_get_str(197fb956ae47a8f8).(t_conn_classcxx . . $ pvpgn/bnetd/t_conn_class# cclass); |
| 271 | extern char const * conn_state_get_strcxx . . $ pvpgn/bnetd/conn_state_get_str(8beab9044c5fcbfa).(t_conn_statecxx . . $ pvpgn/bnetd/t_conn_state# state); |
| 272 | |
| 273 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * conn_createcxx . . $ pvpgn/bnetd/conn_create(7c33ab42ebdb8351).(int tsock, int usock, unsigned int real_local_addr, unsigned short real_local_port, unsigned int local_addr, unsigned short local_port, unsigned int addr, unsigned short port); |
| 274 | extern void conn_destroycxx . . $ pvpgn/bnetd/conn_destroy(5ca99be69f7b035).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_elemcxx . . $ pvpgn/t_elem# ** elem, int conn_or_dead_list); |
| 275 | extern int conn_matchcxx . . $ pvpgn/bnetd/conn_match(6b2655da947c846f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * user); |
| 276 | extern t_conn_classcxx . . $ pvpgn/bnetd/t_conn_class# conn_get_classcxx . . $ pvpgn/bnetd/conn_get_class(1f98a8b9c19f47bc).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 277 | extern void conn_set_classcxx . . $ pvpgn/bnetd/conn_set_class(a3757502d22a5f05).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_conn_classcxx . . $ pvpgn/bnetd/t_conn_class# cclass); |
| 278 | extern t_conn_statecxx . . $ pvpgn/bnetd/t_conn_state# conn_get_statecxx . . $ pvpgn/bnetd/conn_get_state(14586157a79399d4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 279 | extern void conn_set_statecxx . . $ pvpgn/bnetd/conn_set_state(7b556497952c81aa).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_conn_statecxx . . $ pvpgn/bnetd/t_conn_state# state); |
| 280 | extern unsigned int conn_get_sessionkeycxx . . $ pvpgn/bnetd/conn_get_sessionkey(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 281 | extern unsigned int conn_get_sessionnumcxx . . $ pvpgn/bnetd/conn_get_sessionnum(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 282 | extern unsigned int conn_get_secretcxx . . $ pvpgn/bnetd/conn_get_secret(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 283 | extern unsigned int conn_get_addrcxx . . $ pvpgn/bnetd/conn_get_addr(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 284 | extern unsigned short conn_get_portcxx . . $ pvpgn/bnetd/conn_get_port(70207a9c46bcade7).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 285 | extern unsigned int conn_get_local_addrcxx . . $ pvpgn/bnetd/conn_get_local_addr(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 286 | extern unsigned short conn_get_local_portcxx . . $ pvpgn/bnetd/conn_get_local_port(70207a9c46bcade7).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 287 | extern unsigned int conn_get_real_local_addrcxx . . $ pvpgn/bnetd/conn_get_real_local_addr(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 288 | extern unsigned short conn_get_real_local_portcxx . . $ pvpgn/bnetd/conn_get_real_local_port(70207a9c46bcade7).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 289 | extern unsigned int conn_get_game_addrcxx . . $ pvpgn/bnetd/conn_get_game_addr(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 290 | extern int conn_set_game_addrcxx . . $ pvpgn/bnetd/conn_set_game_addr(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int game_addr); |
| 291 | extern unsigned short conn_get_game_portcxx . . $ pvpgn/bnetd/conn_get_game_port(70207a9c46bcade7).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 292 | extern int conn_set_game_portcxx . . $ pvpgn/bnetd/conn_set_game_port(45a47db2bc2ee415).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned short game_port); |
| 293 | extern void conn_set_hostcxx . . $ pvpgn/bnetd/conn_set_host(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * host); |
| 294 | extern void conn_set_usercxx . . $ pvpgn/bnetd/conn_set_user(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * user); |
| 295 | extern const char * conn_get_usercxx . . $ pvpgn/bnetd/conn_get_user(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 296 | extern void conn_set_ownercxx . . $ pvpgn/bnetd/conn_set_owner(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * owner); |
| 297 | extern const char * conn_get_ownercxx . . $ pvpgn/bnetd/conn_get_owner(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 298 | extern void conn_set_cdkeycxx . . $ pvpgn/bnetd/conn_set_cdkey(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * cdkey); |
| 299 | extern char const * conn_get_clientexecxx . . $ pvpgn/bnetd/conn_get_clientexe(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 300 | extern void conn_set_clientexecxx . . $ pvpgn/bnetd/conn_set_clientexe(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * clientexe); |
| 301 | extern t_tagcxx . . $ pvpgn/t_tag# conn_get_archtagcxx . . $ pvpgn/bnetd/conn_get_archtag(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 302 | extern void conn_set_archtagcxx . . $ pvpgn/bnetd/conn_set_archtag(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_tagcxx . . $ pvpgn/t_tag# archtag); |
| 303 | extern t_tagcxx . . $ pvpgn/t_tag# conn_get_gamelangcxx . . $ pvpgn/bnetd/conn_get_gamelang(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 304 | extern void conn_set_gamelangcxx . . $ pvpgn/bnetd/conn_set_gamelang(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_tagcxx . . $ pvpgn/t_tag# gamelang); |
| 305 | extern t_clienttagcxx . . $ pvpgn/t_clienttag# conn_get_clienttagcxx . . $ pvpgn/bnetd/conn_get_clienttag(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 306 | extern t_clienttagcxx . . $ pvpgn/t_clienttag# conn_get_fake_clienttagcxx . . $ pvpgn/bnetd/conn_get_fake_clienttag(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 307 | extern void conn_set_clienttagcxx . . $ pvpgn/bnetd/conn_set_clienttag(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 308 | extern unsigned long conn_get_versionidcxx . . $ pvpgn/bnetd/conn_get_versionid(3fda5c23f1f5e239).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 309 | extern int conn_set_versionidcxx . . $ pvpgn/bnetd/conn_set_versionid(31721b9a6fcb2436).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned long versionid); |
| 310 | extern unsigned long conn_get_gameversioncxx . . $ pvpgn/bnetd/conn_get_gameversion(3fda5c23f1f5e239).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 311 | extern int conn_set_gameversioncxx . . $ pvpgn/bnetd/conn_set_gameversion(31721b9a6fcb2436).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned long gameversion); |
| 312 | extern unsigned long conn_get_checksumcxx . . $ pvpgn/bnetd/conn_get_checksum(3fda5c23f1f5e239).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 313 | extern int conn_set_checksumcxx . . $ pvpgn/bnetd/conn_set_checksum(31721b9a6fcb2436).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned long checksum); |
| 314 | extern char const * conn_get_clientvercxx . . $ pvpgn/bnetd/conn_get_clientver(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 315 | extern void conn_set_clientvercxx . . $ pvpgn/bnetd/conn_set_clientver(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * clientver); |
| 316 | extern int conn_get_tzbiascxx . . $ pvpgn/bnetd/conn_get_tzbias(b5160de3e9803af4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 317 | extern void conn_set_tzbiascxx . . $ pvpgn/bnetd/conn_set_tzbias(5b9d37d9dd0897d2).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, int tzbias); |
| 318 | extern int conn_set_loggedusercxx . . $ pvpgn/bnetd/conn_set_loggeduser(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * username); |
| 319 | extern char const * conn_get_loggedusercxx . . $ pvpgn/bnetd/conn_get_loggeduser(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 320 | extern unsigned int conn_get_flagscxx . . $ pvpgn/bnetd/conn_get_flags(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 321 | extern int conn_set_flagscxx . . $ pvpgn/bnetd/conn_set_flags(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int flags); |
| 322 | extern void conn_add_flagscxx . . $ pvpgn/bnetd/conn_add_flags(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int flags); |
| 323 | extern void conn_del_flagscxx . . $ pvpgn/bnetd/conn_del_flags(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int flags); |
| 324 | extern unsigned int conn_get_latencycxx . . $ pvpgn/bnetd/conn_get_latency(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 325 | extern void conn_set_latencycxx . . $ pvpgn/bnetd/conn_set_latency(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int ms); |
| 326 | extern char const * conn_get_awaystrcxx . . $ pvpgn/bnetd/conn_get_awaystr(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 327 | extern int conn_set_awaystrcxx . . $ pvpgn/bnetd/conn_set_awaystr(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * away); |
| 328 | extern char const * conn_get_dndstrcxx . . $ pvpgn/bnetd/conn_get_dndstr(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 329 | extern int conn_set_dndstrcxx . . $ pvpgn/bnetd/conn_set_dndstr(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * dnd); |
| 330 | extern int conn_add_ignorecxx . . $ pvpgn/bnetd/conn_add_ignore(992d0c708e1a1a08).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 331 | extern int conn_del_ignorecxx . . $ pvpgn/bnetd/conn_del_ignore(587a1b32e97b873a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_accountcxx . . $ pvpgn/bnetd/t_account# const * account); |
| 332 | extern int conn_add_watchcxx . . $ pvpgn/bnetd/conn_add_watch(2bc9ff09b9a40602).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 333 | extern int conn_del_watchcxx . . $ pvpgn/bnetd/conn_del_watch(2bc9ff09b9a40602).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag); |
| 334 | extern t_channelcxx . . $ pvpgn/bnetd/t_channel# * conn_get_channelcxx . . $ pvpgn/bnetd/conn_get_channel(17dd609cd0747384).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 335 | extern int conn_set_channel_varcxx . . $ pvpgn/bnetd/conn_set_channel_var(681c2fcf151532c2).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_channelcxx . . $ pvpgn/bnetd/t_channel# * channel); |
| 336 | extern int conn_set_channelcxx . . $ pvpgn/bnetd/conn_set_channel(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * channelname); |
| 337 | extern int conn_part_channelcxx . . $ pvpgn/bnetd/conn_part_channel(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 338 | extern int conn_kick_channelcxx . . $ pvpgn/bnetd/conn_kick_channel(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * text); |
| 339 | extern int conn_quit_channelcxx . . $ pvpgn/bnetd/conn_quit_channel(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * text); |
| 340 | extern t_gamecxx . . $ pvpgn/bnetd/t_game# * conn_get_gamecxx . . $ pvpgn/bnetd/conn_get_game(692151a8f99bc3ef).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 341 | extern int conn_set_gamecxx . . $ pvpgn/bnetd/conn_set_game(6346b62fdc8e3894).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * gamename, char const * gamepass, char const * gameinfo, t_game_typecxx . . $ pvpgn/bnetd/t_game_type# type, int version); |
| 342 | extern unsigned int conn_get_tcpaddrcxx . . $ pvpgn/bnetd/conn_get_tcpaddr(c9be5e844f0af884).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 343 | extern t_packetcxx . . $ pvpgn/t_packet# * conn_get_in_queuecxx . . $ pvpgn/bnetd/conn_get_in_queue(13d5bf83aec8b080).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 344 | extern void conn_put_in_queuecxx . . $ pvpgn/bnetd/conn_put_in_queue(41a43a32104f7da6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_packetcxx . . $ pvpgn/t_packet# *packet); |
| 345 | extern unsigned int conn_get_in_sizecxx . . $ pvpgn/bnetd/conn_get_in_size(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 346 | extern void conn_set_in_sizecxx . . $ pvpgn/bnetd/conn_set_in_size(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int size); |
| 347 | extern unsigned int conn_get_out_sizecxx . . $ pvpgn/bnetd/conn_get_out_size(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 348 | extern void conn_set_out_sizecxx . . $ pvpgn/bnetd/conn_set_out_size(d97ad1b62a895b69).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int size); |
| 349 | extern int conn_push_outqueuecxx . . $ pvpgn/bnetd/conn_push_outqueue(212cf84cd7032d49).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_packetcxx . . $ pvpgn/t_packet# * packet); |
| 350 | extern t_packetcxx . . $ pvpgn/t_packet# * conn_peek_outqueuecxx . . $ pvpgn/bnetd/conn_peek_outqueue(13d5bf83aec8b080).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 351 | extern t_packetcxx . . $ pvpgn/t_packet# * conn_pull_outqueuecxx . . $ pvpgn/bnetd/conn_pull_outqueue(13d5bf83aec8b080).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 352 | extern int conn_clear_outqueuecxx . . $ pvpgn/bnetd/conn_clear_outqueue(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 353 | extern void conn_close_readcxx . . $ pvpgn/bnetd/conn_close_read(428cd989165da3c5).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 354 | extern int conn_check_ignoringcxx . . $ pvpgn/bnetd/conn_check_ignoring(6b2655da947c846f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * me); |
| 355 | extern t_accountcxx . . $ pvpgn/bnetd/t_account# * conn_get_accountcxx . . $ pvpgn/bnetd/conn_get_account(8df8b24b7c17a7f3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 356 | extern void conn_logincxx . . $ pvpgn/bnetd/conn_login(37ada50ef2b0abe1).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_accountcxx . . $ pvpgn/bnetd/t_account# * account, const char *loggeduser); |
| 357 | extern int conn_get_socketcxx . . $ pvpgn/bnetd/conn_get_socket(b5160de3e9803af4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 358 | extern int conn_get_game_socketcxx . . $ pvpgn/bnetd/conn_get_game_socket(b5160de3e9803af4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 359 | extern int conn_set_game_socketcxx . . $ pvpgn/bnetd/conn_set_game_socket(fa505503af8860d0).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, int usock); |
| 360 | extern char const * conn_get_username_realcxx . . $ pvpgn/bnetd/conn_get_username_real(186ab7be98daf447).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * fn, unsigned int ln); |
| 361 | #define conn_get_usernamecxx . . $ `src/bnetd/connection.h:361:9`!(C) conn_get_username_real(C,__FILE__,__LINE__) |
| 362 | extern char const * conn_get_chatnamecxx . . $ pvpgn/bnetd/conn_get_chatname(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 363 | extern int conn_unget_chatnamecxx . . $ pvpgn/bnetd/conn_unget_chatname(6b2655da947c846f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * name); |
| 364 | extern char const * conn_get_chatcharnamecxx . . $ pvpgn/bnetd/conn_get_chatcharname(f9b74edfe4109401).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * dst); |
| 365 | extern int conn_unget_chatcharnamecxx . . $ pvpgn/bnetd/conn_unget_chatcharname(6b2655da947c846f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * name); |
| 366 | extern t_message_classcxx . . $ pvpgn/bnetd/t_message_class# conn_get_message_classcxx . . $ pvpgn/bnetd/conn_get_message_class(fcbdb1738f905700).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * dst); |
| 367 | extern unsigned int conn_get_useridcxx . . $ pvpgn/bnetd/conn_get_userid(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 368 | extern char const * conn_get_playerinfocxx . . $ pvpgn/bnetd/conn_get_playerinfo(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 369 | extern int conn_set_playerinfocxx . . $ pvpgn/bnetd/conn_set_playerinfo(6b2655da947c846f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c, char const * playerinfo); |
| 370 | extern char const * conn_get_realminfocxx . . $ pvpgn/bnetd/conn_get_realminfo(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 371 | extern int conn_set_realminfocxx . . $ pvpgn/bnetd/conn_set_realminfo(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * realminfo); |
| 372 | extern char const * conn_get_charnamecxx . . $ pvpgn/bnetd/conn_get_charname(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 373 | extern int conn_set_charnamecxx . . $ pvpgn/bnetd/conn_set_charname(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * charname); |
| 374 | extern int conn_set_idletimecxx . . $ pvpgn/bnetd/conn_set_idletime(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 375 | extern unsigned int conn_get_idletimecxx . . $ pvpgn/bnetd/conn_get_idletime(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 376 | extern t_realmcxx . . $ pvpgn/bnetd/t_realm# * conn_get_realmcxx . . $ pvpgn/bnetd/conn_get_realm(c743a4e7d4d1463d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 377 | extern int conn_set_realmcxx . . $ pvpgn/bnetd/conn_set_realm(1e8eed0f1b1019dc).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm); |
| 378 | extern int conn_set_charactercxx . . $ pvpgn/bnetd/conn_set_character(71b7a0fdde31bcde).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_charactercxx . . $ pvpgn/bnetd/t_character# * ch); |
| 379 | extern int conn_bindcxx . . $ pvpgn/bnetd/conn_bind(91f93fcc9edcb042).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c1, t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c2); |
| 380 | extern void conn_set_countrycxx . . $ pvpgn/bnetd/conn_set_country(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * country); |
| 381 | extern char const * conn_get_countrycxx . . $ pvpgn/bnetd/conn_get_country(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 382 | extern int conn_quota_exceededcxx . . $ pvpgn/bnetd/conn_quota_exceeded(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * message); |
| 383 | extern int conn_set_lastsendercxx . . $ pvpgn/bnetd/conn_set_lastsender(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * sender); |
| 384 | extern char const * conn_get_lastsendercxx . . $ pvpgn/bnetd/conn_get_lastsender(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 385 | const VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck# *conn_get_versioncheckcxx . . $ pvpgn/bnetd/conn_get_versioncheck(314c35d933cb7240).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# *c); |
| 386 | bool conn_set_versioncheckcxx . . $ pvpgn/bnetd/conn_set_versioncheck(2086118ca186da4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# *c, const VersionCheckcxx . . $ pvpgn/bnetd/VersionCheck#* versioncheck); |
| 387 | extern int conn_get_echobackcxx . . $ pvpgn/bnetd/conn_get_echoback(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 388 | extern void conn_set_echobackcxx . . $ pvpgn/bnetd/conn_set_echoback(5b9d37d9dd0897d2).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, int echoback); |
| 389 | extern int conn_set_irclinecxx . . $ pvpgn/bnetd/conn_set_ircline(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * line); |
| 390 | extern char const * conn_get_irclinecxx . . $ pvpgn/bnetd/conn_get_ircline(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 391 | extern int conn_set_ircpasscxx . . $ pvpgn/bnetd/conn_set_ircpass(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * pass); |
| 392 | extern char const * conn_get_ircpasscxx . . $ pvpgn/bnetd/conn_get_ircpass(c99dbccf638f5c6).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 393 | extern int conn_set_ircpingcxx . . $ pvpgn/bnetd/conn_set_ircping(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int ping); |
| 394 | extern unsigned int conn_get_ircpingcxx . . $ pvpgn/bnetd/conn_get_ircping(8bd2285a65940781).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 395 | extern int conn_set_udpokcxx . . $ pvpgn/bnetd/conn_set_udpok(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 396 | extern int conn_get_welcomedcxx . . $ pvpgn/bnetd/conn_get_welcomed(b5160de3e9803af4).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 397 | extern void conn_set_welcomedcxx . . $ pvpgn/bnetd/conn_set_welcomed(5b9d37d9dd0897d2).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, int welcomed); |
| 398 | |
| 399 | extern int conn_set_w3_playerinfocxx . . $ pvpgn/bnetd/conn_set_w3_playerinfo(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * w3_playerinfo); |
| 400 | extern const char * conn_get_w3_playerinfocxx . . $ pvpgn/bnetd/conn_get_w3_playerinfo(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 401 | |
| 402 | extern int conn_get_crtimecxx . . $ pvpgn/bnetd/conn_get_crtime(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# *c); |
| 403 | |
| 404 | extern int conn_set_w3_loginreqcxx . . $ pvpgn/bnetd/conn_set_w3_loginreq(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * loginreq); |
| 405 | extern char const * conn_get_w3_loginreqcxx . . $ pvpgn/bnetd/conn_get_w3_loginreq(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 406 | |
| 407 | extern int conn_set_routeconncxx . . $ pvpgn/bnetd/conn_set_routeconn(91f93fcc9edcb042).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_connectioncxx . . $ pvpgn/bnetd/t_connection# * rc); |
| 408 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * conn_get_routeconncxx . . $ pvpgn/bnetd/conn_get_routeconn(30bd672f85ddc689).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# const * c); |
| 409 | extern int connlist_createcxx . . $ pvpgn/bnetd/connlist_create(b126dc7c1de90089).(void); |
| 410 | extern void connlist_reapcxx . . $ pvpgn/bnetd/connlist_reap(49f6e7a06ebc5aa8).(void); |
| 411 | extern int connlist_destroycxx . . $ pvpgn/bnetd/connlist_destroy(b126dc7c1de90089).(void); |
| 412 | extern t_listcxx . . $ pvpgn/t_list# * connlistcxx . . $ pvpgn/bnetd/connlist(7a6cb11de248e2c9).(void); |
| 413 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_sessionkeycxx . . $ pvpgn/bnetd/connlist_find_connection_by_sessionkey(d9e2ca1f510d44cc).(unsigned int sessionkey); |
| 414 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_socketcxx . . $ pvpgn/bnetd/connlist_find_connection_by_socket(f341f3d34aa180c2).(int socket); |
| 415 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_sessionnumcxx . . $ pvpgn/bnetd/connlist_find_connection_by_sessionnum(d9e2ca1f510d44cc).(unsigned int sessionnum); |
| 416 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_namecxx . . $ pvpgn/bnetd/connlist_find_connection_by_name(5be23fbfec631fd6).(char const * name, t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm); /* any chat name format */ |
| 417 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_accountnamecxx . . $ pvpgn/bnetd/connlist_find_connection_by_accountname(2f6d5fbe0174f787).(char const * username); |
| 418 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_charnamecxx . . $ pvpgn/bnetd/connlist_find_connection_by_charname(5dfbbc8378eb231b).(char const * charname, char const * realmname); |
| 419 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_accountcxx . . $ pvpgn/bnetd/connlist_find_connection_by_account(831fe2ed2f0bd703).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account); |
| 420 | extern t_connectioncxx . . $ pvpgn/bnetd/t_connection# * connlist_find_connection_by_uidcxx . . $ pvpgn/bnetd/connlist_find_connection_by_uid(d9e2ca1f510d44cc).(unsigned int uid); |
| 421 | extern int connlist_get_lengthcxx . . $ pvpgn/bnetd/connlist_get_length(b126dc7c1de90089).(void); |
| 422 | extern unsigned int connlist_login_get_lengthcxx . . $ pvpgn/bnetd/connlist_login_get_length(db52760e79bf9054).(void); |
| 423 | extern int connlist_total_loginscxx . . $ pvpgn/bnetd/connlist_total_logins(b126dc7c1de90089).(void); |
| 424 | extern int conn_set_joingamewhisper_ackcxx . . $ pvpgn/bnetd/conn_set_joingamewhisper_ack(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int value); |
| 425 | extern int conn_get_joingamewhisper_ackcxx . . $ pvpgn/bnetd/conn_get_joingamewhisper_ack(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 426 | extern int conn_set_leavegamewhisper_ackcxx . . $ pvpgn/bnetd/conn_set_leavegamewhisper_ack(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int value); |
| 427 | extern int conn_get_leavegamewhisper_ackcxx . . $ pvpgn/bnetd/conn_get_leavegamewhisper_ack(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 428 | extern int conn_set_anongame_search_starttimecxx . . $ pvpgn/bnetd/conn_set_anongame_search_starttime(2bc578cf1171360f).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, stdcxx . . $ std/::time_tcxx . . $ std/time_t# t); |
| 429 | extern stdcxx . . $ std/::time_tcxx . . $ std/time_t# conn_get_anongame_search_starttimecxx . . $ pvpgn/bnetd/conn_get_anongame_search_starttime(c2cdf9dfb46ed026).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 430 | |
| 431 | extern int conn_get_user_count_by_clienttagcxx . . $ pvpgn/bnetd/conn_get_user_count_by_clienttag(4c679297bf94b9eb).(t_clienttagcxx . . $ pvpgn/t_clienttag# ct); |
| 432 | |
| 433 | extern unsigned int connlist_count_connectionscxx . . $ pvpgn/bnetd/connlist_count_connections(2141b656ce2cc063).(unsigned int addr); |
| 434 | |
| 435 | extern int conn_update_w3_playerinfocxx . . $ pvpgn/bnetd/conn_update_w3_playerinfo(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 436 | |
| 437 | extern int conn_get_passfail_countcxx . . $ pvpgn/bnetd/conn_get_passfail_count(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 438 | extern int conn_set_passfail_countcxx . . $ pvpgn/bnetd/conn_set_passfail_count(c14bb6458e7562a).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int failcount); |
| 439 | extern int conn_increment_passfail_countcxx . . $ pvpgn/bnetd/conn_increment_passfail_count(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 440 | |
| 441 | extern char const * conn_get_client_proofcxx . . $ pvpgn/bnetd/conn_get_client_proof(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 442 | extern int conn_set_client_proofcxx . . $ pvpgn/bnetd/conn_set_client_proof(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * client_proof); |
| 443 | |
| 444 | extern char const * conn_get_server_proofcxx . . $ pvpgn/bnetd/conn_get_server_proof(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 445 | extern int conn_set_server_proofcxx . . $ pvpgn/bnetd/conn_set_server_proof(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * server_proof); |
| 446 | |
| 447 | extern int conn_set_tmpOP_channelcxx . . $ pvpgn/bnetd/conn_set_tmpOP_channel(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * tmpOP_channel); |
| 448 | extern char const * conn_get_tmpOP_channelcxx . . $ pvpgn/bnetd/conn_get_tmpOP_channel(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 449 | extern int conn_set_tmpVOICE_channelcxx . . $ pvpgn/bnetd/conn_set_tmpVOICE_channel(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * tmpVOICE_channel); |
| 450 | extern char const * conn_get_tmpVOICE_channelcxx . . $ pvpgn/bnetd/conn_get_tmpVOICE_channel(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 451 | extern t_elistcxx . . $ pvpgn/t_elist# *conn_get_timercxx . . $ pvpgn/bnetd/conn_get_timer(cb0e979634baad06).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 452 | extern int conn_add_fdwatchcxx . . $ pvpgn/bnetd/conn_add_fdwatch(c70e2a13caa7e91e).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# *c, fdwatch_handlercxx . . $ pvpgn/fdwatch_handler# handle); |
| 453 | extern int conn_is_irc_variantcxx . . $ pvpgn/bnetd/conn_is_irc_variant(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 454 | |
| 455 | /* Westwood Online Extensions */ |
| 456 | extern int conn_get_wolcxx . . $ pvpgn/bnetd/conn_get_wol(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 457 | extern void conn_wol_set_apgarcxx . . $ pvpgn/bnetd/conn_wol_set_apgar(c8fb97a9af134824).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, char const * apgar); |
| 458 | extern char const * conn_wol_get_apgarcxx . . $ pvpgn/bnetd/conn_wol_get_apgar(5104e66f1dd67144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 459 | extern void conn_wol_set_codepagecxx . . $ pvpgn/bnetd/conn_wol_set_codepage(5b9d37d9dd0897d2).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, int codepage); |
| 460 | extern int conn_wol_get_codepagecxx . . $ pvpgn/bnetd/conn_wol_get_codepage(c4dfbc2386fe4fc3).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 461 | extern void conn_wol_set_findmecxx . . $ pvpgn/bnetd/conn_wol_set_findme(6a76ece71ede8144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, bool findme); |
| 462 | extern bool conn_wol_get_findmecxx . . $ pvpgn/bnetd/conn_wol_get_findme(5a60a6624233dc9b).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 463 | extern void conn_wol_set_pagemecxx . . $ pvpgn/bnetd/conn_wol_set_pageme(6a76ece71ede8144).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, bool pageme); |
| 464 | extern bool conn_wol_get_pagemecxx . . $ pvpgn/bnetd/conn_wol_get_pageme(5a60a6624233dc9b).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 465 | extern void conn_wol_set_anongame_playercxx . . $ pvpgn/bnetd/conn_wol_set_anongame_player(2bb94d995f9d33).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, t_anongame_wol_playercxx . . $ pvpgn/bnetd/t_anongame_wol_player# * anongame_player); |
| 466 | extern t_anongame_wol_playercxx . . $ pvpgn/bnetd/t_anongame_wol_player# * conn_wol_get_anongame_playercxx . . $ pvpgn/bnetd/conn_wol_get_anongame_player(52b288ba16d756a0).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c); |
| 467 | |
| 468 | extern int conn_client_readmemorycxx . . $ pvpgn/bnetd/conn_client_readmemory(8c66d77427566fb0).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, unsigned int request_id, unsigned int offset, unsigned int length); |
| 469 | extern int conn_client_requiredworkcxx . . $ pvpgn/bnetd/conn_client_requiredwork(2e9022cda97b266d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * c, const char * filename); |
| 470 | } |
| 471 | |
| 472 | } |
| 473 | |
| 474 | #endif |
| 475 | #endif |