• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            socketref,再見(jiàn)!高德

            https://github.com/adoggie

              C++博客 :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
              246 Posts :: 4 Stories :: 312 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(54)

            我參與的團(tuán)隊(duì)

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜



              1 /*
              2 
              3 2010.3.25 zhangbin 
              4 1.create,定義game-core的網(wǎng)絡(luò)接口
              5 
              6 協(xié)定:
              7     1.數(shù)據(jù)類型名稱尾部添加T
              8 
              9 2010.3.27 zhangin
             10 
             11 2010.3.29 zhangbin
             12 1. 取消工作單GameWorkSheetT結(jié)構(gòu)
             13 2. 修改 ISecureService.auth()安全認(rèn)證的數(shù)據(jù)類型
             14 2010.3.30 zhangbin 
             15 1. heartbeat()移動(dòng)到IService接口
             16 */
             17 
             18 
             19 #ifndef _GTR_ICE
             20 #define _GTR_ICE
             21 
             22 
             23 module gtr {
             24 
             25 dictionary<string,string>    HashValueSet;
             26 dictionary<string,string>    ReturnValueT;
             27 sequence<byte>                 ByteStreamT;
             28 sequence<string>            StringListT;
             29 sequence<HashValueSet>    HashValueListT;
             30 sequence<int>                    IntListT;
             31 sequence<StringListT>    StringListListT;
             32 
             33 struct CallReturnT{
             34     bool    succ;
             35     string msg;
             36     HashValueSet props;
             37 };
             38 
             39 const int IMAGEJPEG = 1;
             40 const int IMAGEPNG =2 ;
             41 const int IMAGEBMP = 3 ;
             42 
             43 
             44 //圖像數(shù)據(jù)
             45 struct ImageDataT{
             46     int type;
             47     ByteStreamT    bytes;
             48     int width;
             49     int height;    
             50 };
             51 
             52 struct GameAuthDataT{
             53     int             type;     // 1- 圖片 ,2 - 坐標(biāo)
             54     ImageDataT image; //秘寶圖片
             55     string seckey;      //秘寶坐標(biāo)
             56 };
             57 
             58 
             59 struct GameIdentifyT{
             60     string id;            //游戲編號(hào)
             61     string tradeNo;    //交易單號(hào)
             62 };
             63 
             64 struct ServiceIdentifyT{
             65     string id;
             66     string version;
             67 };
             68 
             69 
             70 interface IService{
             71     int            getType();             //  
             72     ServiceIdentifyT    getId();                //service module id
             73     int                             getTimestamp();        //獲取系統(tǒng)時(shí)鐘  1970之后秒數(shù)
             74     void                             shutdown();
             75     void                             heartbeat(string senderType,string senderId);  //發(fā)送者類型和Id
             76 };
             77 
             78 /*
             79 enum LogMsgLevelT{
             80     logDEBUG,
             81     logINFO,
             82     logCRITICAL,
             83     logERROR
             84 };
             85 */
             86     
             87 struct LogMessageT{
             88     int                     xclass;    //消息類型    
             89     string                 msg;    
             90 };
             91 
             92 //日志功能
             93 interface ILogger {
             94     void gameMsg(GameIdentifyT gameId,int timetick,LogMessageT msg);  // timetick - 1970~ s
             95     void gameImage(GameIdentifyT gameId,int timetick,string opName,ImageDataT image);    //抓圖 opName - 執(zhí)行游戲步驟名稱
             96 };
             97 
             98 //安全管理,包括秘寶認(rèn)證等
             99 interface ISecure {
            100     string auth(GameIdentifyT gameId,GameAuthDataT data); 
            101 };
            102 
            103 //日志服務(wù)器
            104 interface ILogServer extends ILogger,IService{
            105     
            106 };
            107 
            108 interface ISecureServer extends ISecure,IService{
            109 };
            110 
            111 
            112 //一個(gè)游戲任務(wù)相關(guān)的信息
            113 enum GameWorkSheetTypeT{
            114     gwsPost,                    //郵寄
            115     gwsAccountAudit, //帳號(hào)審核
            116     gwsVerify                //驗(yàn)證
            117 };
            118 
            119 
            120 //郵寄
            121 struct GameWorkSheetPostT {
            122     long money;        
            123 };
            124 //審核
            125 struct GameWorkSheetAccountAuditT {
            126     string any;
            127 };
            128 //驗(yàn)證
            129 struct GameWorkSheetVerifyT {
            130     string any;
            131 };
            132 
            133 //交易任務(wù)信息
            134 //Tasklet包含所有的業(yè)務(wù)處理類型,但同時(shí)只有一種有效
            135 struct GameTaskletT{
            136     string id;                            //任務(wù)編號(hào)
            137     int      type;                            //處理類型
            138     string no;            //單號(hào)
            139     string gameId;    //游戲編號(hào)
            140     string account;    //帳號(hào)
            141     string password;
            142     string area;        //區(qū)
            143     string server;    //服務(wù)器
            144     string lineName;//線路名稱(為空則lineNo)
            145     short     lineNo;    //線路編號(hào)
            146     string createTime;
            147     
            148     GameWorkSheetPostT post;    //郵寄
            149     GameWorkSheetAccountAuditT audit;
            150     GameWorkSheetVerifyT        verify;
            151 };
            152 
            153 struct GameTaskResultT{
            154     string id;        //任務(wù)編號(hào)
            155     string no;        //單號(hào) (冗余)
            156     string gameId;    //游戲編號(hào)(冗余)
            157     int result;        //處理結(jié)果
            158     string errmsg;    //提示信息    
            159 };
            160 
            161 //gtr控制服務(wù)端接口
            162 interface IGameHost extends IService,ILogger,ISecure{    
            163     GameTaskletT                    getTask();        //獲取任務(wù)
            164     void                                    completeTask(GameTaskResultT result);         //
            165     
            166 };
            167 
            168 
            169 
            170 };
            171 
            172 
            173 #endif
            174 
            175 


            posted on 2010-09-30 00:38 放屁阿狗 閱讀(1382) 評(píng)論(0)  編輯 收藏 引用 所屬分類: C++/Boost/STL/TemplateIce/xmlrpc
            伊人久久综在合线亚洲2019| 精品无码人妻久久久久久| 久久夜色撩人精品国产| 久久免费国产精品| 精品国产青草久久久久福利| 久久精品无码专区免费东京热 | 精品久久久久久无码免费| 久久久99精品一区二区| 亚洲午夜久久久久妓女影院 | 久久成人国产精品| 久久精品国产精品青草app| 久久精品国产福利国产琪琪| 狠狠色丁香久久婷婷综合蜜芽五月| 亚洲午夜久久久久久久久电影网| 99久久国产综合精品网成人影院| 欧美日韩精品久久久免费观看| 精品午夜久久福利大片| 狠狠色丁香久久婷婷综合图片| 久久久国产精品网站| 久久久SS麻豆欧美国产日韩| 国产农村妇女毛片精品久久| 欧美伊人久久大香线蕉综合| 久久国产免费直播| 久久久九九有精品国产| 狼狼综合久久久久综合网| 99精品国产免费久久久久久下载| 伊人久久大香线焦综合四虎| 精品久久久久香蕉网| 国产成年无码久久久免费| 要久久爱在线免费观看| 国产精品伊人久久伊人电影 | 国产精品久久久亚洲| 亚洲综合熟女久久久30p| 久久精品国产精品亚洲下载| 一级做a爰片久久毛片人呢| 99久久免费国产精品热| 久久久久无码精品国产不卡| 99精品国产99久久久久久97| 久久精品国产亚洲AV忘忧草18 | 国产成人久久精品麻豆一区| 国产情侣久久久久aⅴ免费|