提交 c4667335 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

skypiax: found the way to use netcat to relay configs/client.c stdin and stdout,…

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
上级 dd55e006
//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);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论