mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
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
This commit is contained in:
parent
dd55e006ae
commit
c4667335dd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user