/[LeafOK_CVS]/pvpgn-1.7.4/src/d2dbs/dbspacket.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/d2dbs/dbspacket.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
Error occurred while calculating annotation data.
no message

1 /*
2 * Copyright (C) 2001 faster (lqx@cic.tsinghua.edu.cn)
3 * Copyright (C) 2001 sousou (liupeng.cs@263.net)
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_DBSPACKET_H
20 #define INCLUDED_DBSPACKET_H
21
22 #include "dbserver.h"
23 #include "common/bn_type.h"
24
25 /* #pragma pack(1) */
26
27 typedef struct {
28 bn_short size;
29 bn_short type;
30 bn_int seqno;
31 } t_d2dbs_d2gs_header;
32
33 typedef struct {
34 bn_byte class;
35 } t_d2gs_d2dbs_connect;
36 #define CONNECT_CLASS_D2GS_TO_D2DBS 0x65
37
38 #define D2GS_D2DBS_SAVE_DATA_REQUEST 0x30
39 typedef struct {
40 t_d2dbs_d2gs_header h;
41 bn_short datatype;
42 bn_short datalen;
43 /* AccountName */
44 /* CharName */
45 /* data */
46 } t_d2gs_d2dbs_save_data_request;
47 #define D2GS_DATA_CHARSAVE 0x01
48 #define D2GS_DATA_PORTRAIT 0x02
49
50 #define D2DBS_D2GS_SAVE_DATA_REPLY 0x30
51 typedef struct {
52 t_d2dbs_d2gs_header h;
53 bn_int result;
54 bn_short datatype;
55 /* CharName */
56 } t_d2dbs_d2gs_save_data_reply;
57 #define D2DBS_SAVE_DATA_SUCCESS 0
58 #define D2DBS_SAVE_DATA_FAILED 1
59
60 #define D2GS_D2DBS_GET_DATA_REQUEST 0x31
61 typedef struct {
62 t_d2dbs_d2gs_header h;
63 bn_short datatype;
64 /* AccountName */
65 /* CharName */
66 } t_d2gs_d2dbs_get_data_request;
67
68 #define D2DBS_D2GS_GET_DATA_REPLY 0x31
69 typedef struct {
70 t_d2dbs_d2gs_header h;
71 bn_int result;
72 bn_int charcreatetime;
73 bn_int allowladder;
74 bn_short datatype;
75 bn_short datalen;
76 /* CharName */
77 /* data */
78 } t_d2dbs_d2gs_get_data_reply;
79
80 #define D2DBS_GET_DATA_SUCCESS 0
81 #define D2DBS_GET_DATA_FAILED 1
82 #define D2DBS_GET_DATA_CHARLOCKED 2
83
84 #define D2GS_D2DBS_UPDATE_LADDER 0x32
85 typedef struct {
86 t_d2dbs_d2gs_header h;
87 bn_int charlevel;
88 bn_int charexplow;
89 bn_int charexphigh;
90 bn_short charclass;
91 bn_short charstatus;
92 /* CharName */
93 /* RealmName */
94 } t_d2gs_d2dbs_update_ladder;
95
96 #define D2GS_D2DBS_CHAR_LOCK 0x33
97 typedef struct {
98 t_d2dbs_d2gs_header h;
99 bn_int lockstatus;
100 /* CharName */
101 /* RealmName */
102 } t_d2gs_d2dbs_char_lock;
103
104 #define D2DBS_D2GS_ECHOREQUEST 0x34
105 typedef struct {
106 t_d2dbs_d2gs_header h;
107 } t_d2dbs_d2gs_echorequest;
108
109 #define D2GS_D2DBS_ECHOREPLY 0x34
110 typedef struct {
111 t_d2dbs_d2gs_header h;
112 } t_d2gs_d2dbs_echoreply;
113
114
115 #endif
116
117 extern int dbs_packet_handle(t_d2dbs_connection * conn);
118 extern int dbs_keepalive(void);
119 extern int dbs_check_timeout(void);
120

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