| 1 | /* |
| 2 | * Copyright (C) 1998,1999 Ross Combs ([email protected]) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | #ifndef INCLUDED_INIT_PROTOCOL_TYPES |
| 19 | #define INCLUDED_INIT_PROTOCOL_TYPES |
| 20 | |
| 21 | #ifdef JUST_NEED_TYPES |
| 22 | # include "common/bn_type.h" |
| 23 | #else |
| 24 | # define JUST_NEED_TYPES |
| 25 | # include "common/bn_type.h" |
| 26 | # undef JUST_NEED_TYPES |
| 27 | #endif |
| 28 | |
| 29 | namespace pvpgn |
| 30 | { |
| 31 | |
| 32 | /* There is no header for this packet class and there is only |
| 33 | * one packet type. |
| 34 | */ |
| 35 | |
| 36 | /* |
| 37 | * There is a single byte sent upon initial connections that |
| 38 | * reports the connection type. |
| 39 | */ |
| 40 | |
| 41 | /******************************************************/ |
| 42 | #define CLIENT_INITCONN 0x1 |
| 43 | typedef struct |
| 44 | { |
| 45 | bn_byte cclass; |
| 46 | } PACKED_ATTR() t_client_initconn; |
| 47 | /******************************************************/ |
| 48 | |
| 49 | } |
| 50 | |
| 51 | #endif |
| 52 | |
| 53 | |
| 54 | /*****/ |
| 55 | #ifndef JUST_NEED_TYPES |
| 56 | #ifndef INCLUDED_INIT_PROTOCOL_PROTOS |
| 57 | #define INCLUDED_INIT_PROTOCOL_PROTOS |
| 58 | |
| 59 | #define CLIENT_INITCONN_CLASS_BNET 0x01 /* standard bnet protocol */ |
| 60 | #define CLIENT_INITCONN_CLASS_FILE 0x02 /* BNFTP */ |
| 61 | #define CLIENT_INITCONN_CLASS_BOT 0x03 |
| 62 | #define CLIENT_INITCONN_CLASS_ENC 0x04 /* encrypted connection */ |
| 63 | #define CLIENT_INITCONN_CLASS_TELNET 0x0d /* Hack alert: look for user to hit \r when they connect */ |
| 64 | #define CLIENT_INITCONN_CLASS_D2CS 0x01 |
| 65 | #define CLIENT_INITCONN_CLASS_D2GS 0x64 |
| 66 | #define CLIENT_INITCONN_CLASS_D2CS_BNETD 0x65 |
| 67 | #define CLIENT_INITCONN_CLASS_LOCALMACHINE 0x98 /* local computer connecting via 127.0.0.1 */ |
| 68 | |
| 69 | #endif |
| 70 | #endif |