Edit

kc3-lang/libevent/test/regress.rpc

Branch :

  • Show log

    Commit

  • Author : Niels Provos
    Date : 2007-12-15 02:55:59
    Hash : 5bb67a80
    Message : from trunk: support for 32-bit tag numbers in rpc structures svn:r593

  • test/regress.rpc
  • /* tests data packing and unpacking */
    
    struct msg {
    	string from_name = 1;
    	string to_name = 2;
    	optional struct[kill] attack = 3;
    	array struct[run] run = 4;
    }
    
    struct kill {
    	string weapon = 0x10121;
    	string action = 2;
    	optional int how_often = 3;
    }
    
    struct run {
    	string how = 1;
    }