FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/clientcmd.c @ 871:a5c8f48003cd
rvinterf: client programs can now selectively stop receiving packets of a
particular RVTMUX type
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 29 May 2015 06:29:38 +0000 |
parents | 2682003dcba7 |
children | 5f919af515f1 |
comparison
equal
deleted
inserted
replaced
870:2682003dcba7 | 871:a5c8f48003cd |
---|---|
51 return; | 51 return; |
52 } | 52 } |
53 cli->int_proto[cli->rx_buf[1] - 0x12] = 1; | 53 cli->int_proto[cli->rx_buf[1] - 0x12] = 1; |
54 send_local_msg_to_client(cli, "+OK"); | 54 send_local_msg_to_client(cli, "+OK"); |
55 return; | 55 return; |
56 case CLI2RVI_DROP_MUXPROTO: | |
57 if (cli->rx_msglen != 2) { | |
58 send_local_msg_to_client(cli, "-Bad command length"); | |
59 return; | |
60 } | |
61 if (cli->rx_buf[1] < 0x12 || cli->rx_buf[1] > 0x1B) { | |
62 send_local_msg_to_client(cli, | |
63 "-Unsupported protocol MUX value"); | |
64 return; | |
65 } | |
66 cli->int_proto[cli->rx_buf[1] - 0x12] = 0; | |
67 send_local_msg_to_client(cli, "+OK"); | |
68 return; | |
56 case CLI2RVI_RESET_PACKET_RX: | 69 case CLI2RVI_RESET_PACKET_RX: |
57 cli->int_rvt_count = 0; | 70 cli->int_rvt_count = 0; |
58 bzero(cli->int_proto, sizeof(cli->int_proto)); | 71 bzero(cli->int_proto, sizeof(cli->int_proto)); |
59 send_local_msg_to_client(cli, "+OK"); | 72 send_local_msg_to_client(cli, "+OK"); |
60 return; | 73 return; |