]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypiax: found the way to use netcat to relay configs/client.c stdin and stdout,...
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Sat, 28 Mar 2009 20:01:03 +0000 (20:01 +0000)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Sat, 28 Mar 2009 20:01:03 +0000 (20:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12826 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_skypiax/configs/client.c

index f8c2b1810673c49595baa1229377b34d4c8fed6c..e11328d1b09b31ddbcddeeb6e790dbd940b712be 100644 (file)
@@ -1,4 +1,16 @@
 //gcc -Wall -ggdb client.c -o client -lX11 -lpthread
+/*
+USAGE:
+
+on skype_client_machine:
+# mknod /tmp/backpipe_103 p
+# ./client :103  0</tmp/backpipe_103 | nc -l -p 123456 | tee 1>/tmp/backpipe_103
+
+on skypiax server machine:
+# nc skype_client_machine 123456
+
+*/
+
 #include <stdio.h>
 #include <unistd.h>
 #include <X11/Xlib.h>
@@ -176,6 +188,7 @@ void *threadfunc(void *parm)
 
         //printf("\tRECEIVED\t==>\t%s\n", b);
         printf("%s\n", b);
+       fflush(stdout);
         memset(buffer, '\0', 17000);
       }