From c4667335ddd5be18d097b188e806e50bc8e635ba Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Sat, 28 Mar 2009 20:01:03 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_skypiax/configs/client.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); }