Construct the router socket to route to the workers.
This commit is contained in:
@@ -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}));
|
||||
}
|
||||
|
||||
char *ep = endpoint();
|
||||
zsock_t *frontend = zsock_new_router(ep);
|
||||
|
||||
free(ep);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user