1 #include "johnnyclient.h" //library headers
2 #include <unistd.h> //sleep
3
4 int main(int argc, char *argv[]) {
5 vc::cJohnnyClient johnny;
6 vc::cReply sReply;
7 johnny.Connect(string("127.0.0.1"), 9991);
8 johnny.Call(string("guest@misery.digium.com/s"), sReply);
9 while (1) {sleep(1);} //to prevent CPU from overheat
10 return 0; //to prevent warning
11 }