Example #1
0
        public Buf2RespRet Buf2Resp(int taskid, int user_context, byte[] inbuffer, int error_code, int channel_select)
        {
            MarsTaskWrapperBase scene = MarsTaskMgr.getTask(taskid);

            if (null == scene)
            {
                return(null);
            }

            return(scene.onBuf2Resp(inbuffer));
        }
Example #2
0
        public Req2BufRet Req2Buf(int taskid, int user_context, int error_code, int channel_select)
        {
            Req2BufRet          ret   = new Req2BufRet();
            MarsTaskWrapperBase scene = MarsTaskMgr.getTask(taskid);

            if (null == scene)
            {
                ret.bRet     = false;
                ret.nErrCode = -1;
                return(ret);
            }

            ret.outbuffer = scene.requestToByteArray();
            ret.bRet      = true;
            ret.nErrCode  = 0;
            return(ret);
        }
Example #3
0
 public int OnTaskEnd(int taskid, int user_context, int error_type, int error_code)
 {
     MarsTaskMgr.onTaskEnd(taskid, error_type, error_code);
     return(1);
 }