diff options
author | dscho <dscho> | 2002-01-16 19:45:21 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-01-16 19:45:21 +0000 |
commit | 9fb7fef3c6ff17651255e78a96ae20d96c0d46b4 (patch) | |
tree | 12298025ad0e5c56d15361a55d7a57a1120a9fa0 /mac.c | |
parent | 94570b019a8e88df41deeee4acbfbc545a12829a (diff) | |
download | libtdevnc-9fb7fef3c6ff17651255e78a96ae20d96c0d46b4.tar.gz libtdevnc-9fb7fef3c6ff17651255e78a96ae20d96c0d46b4.zip |
clean ups and encoding "backchannel"
Diffstat (limited to 'mac.c')
-rw-r--r-- | mac.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |