summaryrefslogtreecommitdiffstats
path: root/mac.c
diff options
context:
space:
mode:
authordscho <dscho>2002-01-16 19:45:21 +0000
committerdscho <dscho>2002-01-16 19:45:21 +0000
commit9fb7fef3c6ff17651255e78a96ae20d96c0d46b4 (patch)
tree12298025ad0e5c56d15361a55d7a57a1120a9fa0 /mac.c
parent94570b019a8e88df41deeee4acbfbc545a12829a (diff)
downloadlibtdevnc-9fb7fef3c6ff17651255e78a96ae20d96c0d46b4.tar.gz
libtdevnc-9fb7fef3c6ff17651255e78a96ae20d96c0d46b4.zip
clean ups and encoding "backchannel"
Diffstat (limited to 'mac.c')
-rw-r--r--mac.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mac.c b/mac.c
index b590e25..856bd20 100644
--- a/mac.c
+++ b/mac.c
@@ -327,6 +327,10 @@ refreshCallback(CGRectCount count, const CGRect *rectArray, void *ignore)
break;
}
}
+#ifdef BACKCHANNEL
+ else if(message[0]=='b')
+ rfbSendBackChannel(screen,message+1,strlen(message+1));
+#endif
}
#endif
@@ -377,6 +381,13 @@ int main(int argc,char *argv[])
send_message(&single_instance,"l");
exit(0);
} else
+#ifdef BACKCHANNEL
+ if(i<argc-1 && !strcmp(argv[i],"-backchannel")) {
+ sprintf(message,"b%s",argv[i+1]);
+ send_message(&single_instance,message);
+ exit(0);
+ } else
+#endif
#endif
if(i<argc-1 && strcmp(argv[i],"-wait4client")==0) {
maxSecsToConnect = atoi(argv[i+1])/1000;