diff rvinterf/lowlevel/clientcmd.c @ 185:ec040f521cc2

rvinterf works after fixing max_fd
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 24 Nov 2013 20:27:21 +0000
parents 59ee5817b194
children 2f285f20d617
line wrap: on
line diff
--- a/rvinterf/lowlevel/clientcmd.c	Sun Nov 24 08:40:44 2013 +0000
+++ b/rvinterf/lowlevel/clientcmd.c	Sun Nov 24 20:27:21 2013 +0000
@@ -18,6 +18,7 @@
 	struct client *cli;
 {
 	int c;
+	char logmsg[128];
 
 	switch (cli->rx_buf[0]) {
 	case CLI2RVI_WANT_RVTRACE:
@@ -37,6 +38,10 @@
 		cli->int_rvt_match[c] = cli->rx_buf[5] << 24 |
 					cli->rx_buf[6] << 16 |
 					cli->rx_buf[7] << 8 | cli->rx_buf[8];
+		sprintf(logmsg,
+		"*** Client program interested in RVT mask %08X match %08X",
+			cli->int_rvt_mask[c], cli->int_rvt_match[c]);
+		output_line(logmsg);
 		cli->int_rvt_count++;
 		send_local_msg_to_client(cli, "+OK");
 		return;
@@ -50,6 +55,10 @@
 					"-Unsupported protocol MUX value");
 			return;
 		}
+		sprintf(logmsg,
+			"*** Client program interested in MUX proto %02X",
+			cli->rx_buf[1]);
+		output_line(logmsg);
 		cli->int_proto[cli->rx_buf[1] - 0x12] = 1;
 		send_local_msg_to_client(cli, "+OK");
 		return;