Exemple #1
0
        public static ulong parseMsgBegin(GmqParser parser)
        {
            ulong msgID;

            parser.parseUnsignedInteger(out msgID);

            return(msgID);
        }
Exemple #2
0
        public static void handle(GmqParser parser, GmqMessageHandler[] handlers)
        {
            ulong msgID;

            parser.parseUnsignedInteger(out msgID);
            GmqMessageHandler handler = find_handler(msgID, handlers);

            if (handler != null)
            {
                handler._delegate(parser, msgID);
            }
            else
            {
                throw new Exception();
            }
        }
Exemple #3
0
 public static void parseMsgEnd(GmqParser parser)
 {
 }
Exemple #4
0
 void handle(GmqParser parser, ulong msgID)
 {
     _delegate(parser, msgID);
 }
 public GmqPublishableParser(ReadIteratorT riter)
 {
     p = new GmqParser(riter);
 }