/[LeafOK_CVS]/pvpgn-1.7.4/src/common/init_protocol.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/common/init_protocol.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
CVS Tags: pvpgn_1-7-4-0_MIL
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 /*
2 * Copyright (C) 1998,1999 Ross Combs (rocombs@cs.nmsu.edu)
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 /* There is no header for this packet class and there is only
30 * one packet type.
31 */
32
33 /*
34 * There is a single byte sent upon initial connections that
35 * reports the connection type.
36 */
37
38 /******************************************************/
39 #define CLIENT_INITCONN 0x1
40 typedef struct
41 {
42 bn_byte class;
43 } PACKED_ATTR() t_client_initconn;
44 /******************************************************/
45
46 #endif
47
48
49 /*****/
50 #ifndef JUST_NEED_TYPES
51 #ifndef INCLUDED_INIT_PROTOCOL_PROTOS
52 #define INCLUDED_INIT_PROTOCOL_PROTOS
53
54 #define CLIENT_INITCONN_CLASS_BNET 0x01 /* standard bnet protocol */
55 #define CLIENT_INITCONN_CLASS_FILE 0x02
56 #define CLIENT_INITCONN_CLASS_BOT 0x03
57 #define CLIENT_INITCONN_CLASS_ENC 0x04 /* encrypted connection */
58 #define CLIENT_INITCONN_CLASS_TELNET 0x0d /* Hack alert: look for user to hit \r when they connect */
59 #define CLIENT_INITCONN_CLASS_D2CS 0x01
60 #define CLIENT_INITCONN_CLASS_D2GS 0x64
61 #define CLIENT_INITCONN_CLASS_D2CS_BNETD 0x65
62
63 #endif
64 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1