Kaydet (Commit) a361d0b2 authored tarafından Gürer Özen's avatar Gürer Özen

oh lala, bu kod temizlik istemekle beraber çalışıyor da aynı zamanda.

üst b719b410
......@@ -45,6 +45,9 @@ main(int argc, char *argv[])
case CMD_REMOVE:
break;
case CMD_CALL:
proc_recv(p, &data, size);
printf("Call(%d)\n", data->node);
job_start_execute(data->node, NULL);
break;
}
}
......
......@@ -123,9 +123,20 @@ printf("RPC [%s]\n", c->buffer);
strcpy(&cmd->data[0], t);
strcpy(&cmd->data[0] + strlen(t) + 1, s);
proc_send(TO_PARENT, CMD_REGISTER, cmd, size);
free(cmd);
return 0;
case '-':
return 0;
case '$':
// call cmd, method name, (app name), (args)
no = model_lookup_method(t);
if (no == -1) return -1;
{
struct call_cmd cmd;
cmd.node = no;
proc_send(TO_PARENT, CMD_CALL, &cmd, sizeof(cmd));
}
return 0;
default:
return -1;
}
......
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