22 (0x16) CA_PROTO_ACCESS_RIGHTS
Inheritance: CommandHandler
コード例 #1
0
 public void AccessRightsConstructorTest()
 {
     // Should simply create an object
     // ReSharper disable UnusedVariable
     AccessRights target = new AccessRights();
     // ReSharper restore UnusedVariable
 }
コード例 #2
0
 /// <summary>
 /// Setup the handles in the array for quick access.
 /// </summary>
 static CommandHandler()
 {
     handlers[0] = new Version();
     handlers[1] = new EventAdd();
     handlers[2] = new EventCancel();
     handlers[4] = new Write();
     handlers[6] = new Search();
     handlers[11] = new ProtoError();
     handlers[12] = new ClearChannel();
     handlers[13] = new Beacon();
     handlers[15] = new ReadNotify();
     handlers[18] = new CreateChannel();
     handlers[19] = new WriteNotify();
     handlers[20] = new ClientName();
     handlers[21] = new HostName();
     handlers[22] = new AccessRights();
     handlers[23] = new Echo();
 }
コード例 #3
0
 public void AccessRightsDoResponse()
 {
     AccessRights target = new AccessRights();
     target.DoResponse( DataPacket.Create(16), null, packet => { throw new Exception("Call the sendMessage!"); });
 }