#include "callid.hxx"

#ifdef WIN32
#include <winsock2.h>
#include "gnproto.h"
#include "gncompress.h"
#else
#include "protocol.h"
#include "binder.h"
#endif

namespace GNET
{

static GNET::Protocol::Type _state_GameDBServer[] = 
{
	PROTOCOL_DELROLEANNOUNCE,
	RPC_DBCREATEROLE,
	RPC_DBDELETEROLE,
	RPC_DBUNDODELETEROLE,
	RPC_PUTUSER,
	RPC_GETUSER,
	RPC_DELUSER,
	RPC_GETROLE,
	RPC_GETROLEINFO,
	RPC_DELROLE,
	RPC_PUTROLEBASE,
	RPC_GETROLEBASE,
	RPC_PUTROLESTATUS,
	RPC_GETROLEPOCKET,
	RPC_PUTROLEPOCKET,
	RPC_GETROLESTATUS,
	RPC_PUTROLEEQUIPMENT,
	RPC_GETROLEEQUIPMENT,
	RPC_PUTROLETASK,
	RPC_GETROLETASK,
	RPC_PUTROLEDATA,
	RPC_GETROLEDATA,
	RPC_DBMODIFYROLEDATA,
	RPC_TRADEINVENTORY,
	RPC_TRADESAVE,
	RPC_PUTROLE,
	RPC_GETMONEYINVENTORY,
	RPC_PUTMONEYINVENTORY,
	RPC_GETROLEBASESTATUS,
	RPC_PUTROLESTOREHOUSE,
	RPC_GETROLESTOREHOUSE,
	RPC_PUTROLEFORBID,
	RPC_GETROLEFORBID,
	RPC_GETROLEID,
	RPC_GETFRIENDLIST,
	RPC_PUTFRIENDLIST,
	RPC_PUTMESSAGE,
	RPC_GETMESSAGE,
	RPC_GETTASKDATARPC,
	RPC_PUTTASKDATARPC,
	RPC_DBMAPPASSWORDLOAD,
	RPC_DBMAPPASSWORDSAVE,
	RPC_DBSOLOCHALLENGERANKLOAD,
	RPC_DBSOLOCHALLENGERANKSAVE,
	RPC_GETUSERROLES,
	RPC_CLEARSTOREHOUSEPASSWD,
	RPC_CANCHANGEROLENAME,
	RPC_RENAMEROLE,
	RPC_UID2LOGICUID,
	RPC_ROLEID2UID,
	RPC_DBGETCONSUMEINFOS,
	RPC_ADDFACTION,
	RPC_DELFACTION,
	RPC_ADDMEMBER,
	RPC_DELMEMBER,
	RPC_DELMEMBERSCHEDULE,
	RPC_UPDATEUSERFACTION,
	RPC_UPDATEFACTION,
	RPC_DBFACTIONUPGRADE,
	RPC_DBFACTIONPROMOTE,
	RPC_GETFACTIONINFO,
	RPC_GETUSERFACTION,
	RPC_GETFACTIONDETAIL,
	RPC_DBVERIFYMASTER,
	RPC_DBBATTLECHALLENGE,
	RPC_DBBATTLELOAD,
	RPC_DBBATTLESET,
	RPC_DBBATTLECHALLENGE,
	RPC_DBBATTLEEND,
	RPC_DBBATTLEMAIL,
	RPC_DBBATTLEBONUS,
	RPC_DBFACTIONALLIANCEAPPLY,
	RPC_DBFACTIONALLIANCEREPLY,
	RPC_DBFACTIONHOSTILEAPPLY,
	RPC_DBFACTIONHOSTILEREPLY,
	RPC_DBFACTIONREMOVERELATIONAPPLY,
	RPC_DBFACTIONREMOVERELATIONREPLY,
	RPC_DBFACTIONRELATIONTIMEOUT,
	RPC_DBFACTIONRELATIONAPPLYTIMEOUT,
	RPC_TRANSACTIONACQUIRE,
	RPC_TRANSACTIONABORT,
	RPC_TRANSACTIONCOMMIT,
	RPC_DBPLAYERREQUITEFRIEND,
	PROTOCOL_DBFRIENDEXTLIST,
	RPC_DBGETMAILLIST,
	RPC_DBGETMAIL,
	RPC_DBGETMAILATTACH,
	RPC_DBSETMAILATTR,
	RPC_DBSENDMAIL,
	RPC_DBDELETEMAIL,
	RPC_DBSENDMASSMAIL,
	RPC_DBAUCTIONOPEN,
	RPC_DBAUCTIONBID,
	RPC_DBAUCTIONGET,
	RPC_DBAUCTIONCLOSE,
	RPC_DBAUCTIONLIST,
	RPC_DBAUCTIONTIMEOUT,
	RPC_DBSELLPOINT,
	RPC_DBBUYPOINT,
	RPC_DBSYNCSELLINFO,
	RPC_DBSELLTIMEOUT,
	RPC_DBSELLCANCEL,
	PROTOCOL_TRANSBUYPOINT_RE,
	RPC_DBTRANSPOINTDEAL,
	PROTOCOL_ANNOUNCEZONEID,
	RPC_CASHSERIAL,
	RPC_GETADDCASHSN,
	PROTOCOL_ADDCASH,
	PROTOCOL_ADDCASH_RE,
	RPC_DBSTOCKLOAD,
	RPC_DBSTOCKTRANSACTION,
	RPC_DBSTOCKBALANCE,
	RPC_DBSTOCKCOMMISSION,
	RPC_DBSTOCKCANCEL,
	RPC_DBSETCASHPASSWORD,
	RPC_PUTSPOUSE,
	RPC_DBAUTOLOCKSET,
	RPC_DBAUTOLOCKGET,
	RPC_DBAUTOLOCKSETOFFLINE,
	PROTOCOL_DOMAINCMD,
	RPC_QUERYUSERID,
	RPC_DBRAWREAD,
	RPC_FORBIDUSER,
	RPC_DBFORBIDUSER,
	RPC_DBCLEARCONSUMABLE,
	RPC_DBREFWITHDRAWTRANS,
	RPC_DBREFGETREFERRAL,
	RPC_DBREFGETREFERRER,
	RPC_DBREFUPDATEREFERRAL,
	RPC_DBREFUPDATEREFERRER,
	RPC_DBGETREWARD,
	RPC_DBPUTCONSUMEPOINTS,
	RPC_DBPUTREWARDBONUS,
	RPC_DBREWARDMATURE,
	RPC_DBEXCHANGECONSUMEPOINTS,
	PROTOCOL_DEBUGADDCASH,
	RPC_DBPLAYERPOSITIONRESET,
	RPC_DBWEBTRADELOAD,
	RPC_DBWEBTRADELOADSOLD,
	RPC_DBWEBTRADEPREPOST,
	RPC_DBWEBTRADEPRECANCELPOST,
	RPC_DBWEBTRADEPOST,
	RPC_DBWEBTRADECANCELPOST,
	RPC_DBWEBTRADESHELF,
	RPC_DBWEBTRADECANCELSHELF,
	RPC_DBWEBTRADESOLD,
	RPC_DBWEBTRADEPOSTEXPIRE,
	RPC_DBWEBTRADEGETROLESIMPLEINFO,
	RPC_DBSYSAUCTIONCASHTRANSFER,
	RPC_DBSYSAUCTIONCASHSPEND,
	RPC_PUTSERVERDATA,
	RPC_GETSERVERDATA,
	RPC_GETCASHTOTAL,
	RPC_DBFACTIONFORTRESSLOAD,
	RPC_DBPUTFACTIONFORTRESS,
	RPC_DBDELFACTIONFORTRESS,
	RPC_DBCREATEFACTIONFORTRESS,
	RPC_DBFACTIONFORTRESSCHALLENGE,
	RPC_DBGAMETALKROLELIST,
	RPC_DBGAMETALKROLERELATION,
	RPC_DBGAMETALKFACTIONINFO,
	RPC_DBGAMETALKROLESTATUS,
	RPC_DBGAMETALKROLEINFO,
	RPC_DBFORCELOAD,
	RPC_DBPUTFORCE,
	RPC_DBCOUNTRYBATTLEBONUS,
	RPC_FETCHPLAYERDATA,
	RPC_ACTIVATEPLAYERDATA,
	RPC_DELPLAYERDATA,
	RPC_SAVEPLAYERDATA,
	RPC_PLAYERIDENTITYMATCH,
	RPC_FREEZEPLAYERDATA,
	RPC_TOUCHPLAYERDATA,
	PROTOCOL_ANNOUNCECENTRALDELIVERY,
	RPC_DBUPDATEPLAYERCROSSINFO,
	RPC_DBLOADGLOBALCONTROL,
	RPC_DBPUTGLOBALCONTROL,
	RPC_DBUNIQUEDATALOAD,
	RPC_DBUNIQUEDATASAVE,
	RPC_DBPLAYERRENAME,
	RPC_DBROLENAMELIST,
	RPC_DBPLAYERCHANGEGENDER,
	RPC_DBKELOAD,
	RPC_DBKECANDIDATEAPPLY,
	RPC_DBKECANDIDATECONFIRM,
	RPC_DBKEVOTING,
	RPC_DBKEKINGCONFIRM,
	RPC_DBKEDELETEKING,
	RPC_DBKEDELETECANDIDATE,
	RPC_DBPSHOPCREATE,
	RPC_DBPSHOPBUY,
	RPC_DBPSHOPSELL,
	RPC_DBPSHOPCANCELGOODS,
	RPC_DBPSHOPPLAYERBUY,
	RPC_DBPSHOPPLAYERSELL,
	RPC_DBPSHOPSETTYPE,
	RPC_DBPSHOPACTIVE,
	RPC_DBPSHOPMANAGEFUND,
	RPC_DBPSHOPDRAWITEM,
	RPC_DBPSHOPLOAD,
	RPC_DBPSHOPGET,
	RPC_DBPSHOPCLEARGOODS,
	RPC_DBPSHOPTIMEOUT,
	RPC_DBPLAYERGIVEPRESENT,
	RPC_DBPLAYERASKFORPRESENT,
	RPC_DBSYSMAIL3,
	RPC_DBGETPLAYERPROFILEDATA,
	RPC_DBPUTPLAYERPROFILEDATA,
	RPC_DBTANKBATTLEBONUS,
	RPC_DBFACTIONRESOURCEBATTLEBONUS,
	RPC_DBCOPYROLE,
	RPC_DBFACTIONRENAME,
	RPC_DBMNFACTIONINFOGET,
	RPC_DBMNFACTIONSTATEUPDATE,
	PROTOCOL_DBMNFACTIONCACHEUPDATE,
	RPC_DBMNFACTIONAPPLYINFOGET,
	RPC_DBMNFACTIONBATTLEAPPLY,
	RPC_DBMNFACTIONINFOUPDATE,
	RPC_DBMNDOMAININFOUPDATE,
	RPC_DBMNFACTIONAPPLYRESNOTIFY,
	RPC_DBMNPUTBATTLEBONUS,
	RPC_DBMNSENDBATTLEBONUS,
	RPC_DBMNSENDBONUSNOTIFY,
	RPC_DBMNFACTIONAPPLYINFOPUT,
};

GNET::Protocol::Manager::Session::State state_GameDBServer(_state_GameDBServer,
						sizeof(_state_GameDBServer)/sizeof(GNET::Protocol::Type), 86400);


};

