improve monitor-cli to allow choosing which peer to dial.

This commit is contained in:
gardners 2012-05-08 14:33:17 +09:30
parent 4fa63e61bc
commit 67c7c1a7c0

View File

@ -51,8 +51,11 @@ int main(int argc, char *argv[]) {
writeLine("monitor vomp\n");
writeLine("monitor rhizome\n");
if (argc>1)
writeLine("call * 5551 5552\n");
if (argc>1) {
char msg[1024];
snprintf(msg,1024,"call %s 5551 5552\n",argv[1]);
writeLine(msg);
}
while(1) {
poll(fds,fdcount,1000);