Commit d97d8cd6 authored by Philip Carns's avatar Philip Carns

hack; make client act as server for relay

parent 4f4be87d
...@@ -42,7 +42,10 @@ int main(int argc, char **argv) ...@@ -42,7 +42,10 @@ int main(int argc, char **argv)
*/ */
for(i=0; i<11 && argv[1][i] != '\0' && argv[1][i] != ':'; i++) for(i=0; i<11 && argv[1][i] != '\0' && argv[1][i] != ':'; i++)
proto[i] = argv[1][i]; proto[i] = argv[1][i];
hg_class = HG_Init(proto, HG_FALSE); /* TODO: this is a hack for now; I don't really want this to operate in server mode,
* but it seems like it needs to for now for sub-service to be able to get back to it
*/
hg_class = HG_Init(proto, HG_TRUE);
if(!hg_class) if(!hg_class)
{ {
fprintf(stderr, "Error: HG_Init()\n"); fprintf(stderr, "Error: HG_Init()\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment