[Freeswitch-svn] [commit] r12826 - freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs

FreeSWITCH SVN gmaruzz at freeswitch.org
Sat Mar 28 13:01:03 PDT 2009


Author: gmaruzz
Date: Sat Mar 28 15:01:03 2009
New Revision: 12826

Log:
skypiax: found the way to use netcat to relay configs/client.c stdin and stdout, will be the basis for farming out. Instruction in the first lines of configs/client.c. As Young Frankenstein said: It... Could... Workcd /usr/src/freeswitch/src/mod/endpoints/mod_skypiax/configs! http://www.ladyofthecake.com/mel/frank/sounds/couldwrk.wav

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c	Sat Mar 28 15:01:03 2009
@@ -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 @@
 
         //printf("\tRECEIVED\t==>\t%s\n", b);
         printf("%s\n", b);
+	fflush(stdout);
         memset(buffer, '\0', 17000);
       }
 



More information about the Freeswitch-svn mailing list