@ -242,10 +243,13 @@ int callapi(char *command, char *host, short int port)
@@ -242,10 +243,13 @@ int callapi(char *command, char *host, short int port)
buf[p]='\0';
}
if(ONLY)
printf("%s\n",buf);
else{
printf("Reply was '%s'\n",buf);
display(buf);
}
}
CLOSESOCKET(sock);
@ -274,6 +278,7 @@ int main(int argc, char *argv[])
@@ -274,6 +278,7 @@ int main(int argc, char *argv[])
char*host="127.0.0.1";
shortintport=4028;
char*ptr;
inti=1;
if(argc>1)
if(strcmp(argv[1],"-?")==0
@ -283,20 +288,26 @@ int main(int argc, char *argv[])
@@ -283,20 +288,26 @@ int main(int argc, char *argv[])