Construct the router socket to route to the workers.

This commit is contained in:
2024-03-02 22:03:28 -05:00
parent 7e2b619148
commit 300b4d7aba

View File

@@ -25,6 +25,11 @@ int main(int argc, char **argv) {
workers[i] = zactor_new(worker_task, (void *) &((struct { char* path; char *name; }) {.path = path, .name = name})); workers[i] = zactor_new(worker_task, (void *) &((struct { char* path; char *name; }) {.path = path, .name = name}));
} }
char *ep = endpoint();
zsock_t *frontend = zsock_new_router(ep);
free(ep);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }