From: Giovanni Maruzzelli Date: Sat, 28 Mar 2009 20:01:03 +0000 (+0000) Subject: skypiax: found the way to use netcat to relay configs/client.c stdin and stdout,... X-Git-Tag: v1.0.4~1349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4667335ddd5be18d097b188e806e50bc8e635ba;p=thirdparty%2Ffreeswitch.git 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 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12826 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_skypiax/configs/client.c b/src/mod/endpoints/mod_skypiax/configs/client.c index f8c2b18106..e11328d1b0 100644 --- a/src/mod/endpoints/mod_skypiax/configs/client.c +++ b/src/mod/endpoints/mod_skypiax/configs/client.c @@ -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 + +on skypiax server machine: +# nc skype_client_machine 123456 + +*/ + #include #include #include @@ -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); }