Beispiel #1
0
        //处理在此adapter内产生的消息

        /*
         * public void onConnectionMessage(RpcMessage m) {
         *  if (_dispatcher != null) {
         *      _dispatcher.dispatchMsg(m);
         *  }
         * }
         * */



        void doError(int errcode, RpcMessage m)
        {
            RpcMessageReturn msgreturn = new RpcMessageReturn(m.sequence, errcode);

            msgreturn.send(m.conn);
            //		RpcConnection conn = m.conn;

            /*
             * var sm:RpcMessageReturn = new RpcMessageReturn();
             * sm.sequence = m.sequence;
             * sm.errcode = errcode;
             * conn.sendMessage(sm);
             */
        }
Beispiel #2
0
 //处理在此adapter内产生的消息
 /*
 public void onConnectionMessage(RpcMessage m) {
     if (_dispatcher != null) {
         _dispatcher.dispatchMsg(m);
     }
 }
  * */
 void doError(int errcode, RpcMessage m)
 {
     RpcMessageReturn msgreturn = new RpcMessageReturn(m.sequence,errcode);
     msgreturn.send(m.conn);
     //		RpcConnection conn = m.conn;
     /*
     var sm:RpcMessageReturn = new RpcMessageReturn();
     sm.sequence = m.sequence;
     sm.errcode = errcode;
     conn.sendMessage(sm);
     */
 }