Closed fraunhofer-iis-bot closed 1 year ago
In GitLab by @cstender on Oct 17, 2019, 14:13
Steps:
uint16_t num_clients
and uint16_t max_clients
num_clients = 0;
and max_clients = 0
in japi_init()
japi_set_max_allowed_clients(uint16_t num)
japi_add_client()
to increase japi->num_clients whenever a client is addedjapu_remove_client()
to decrease japu->num_clients whenever a client re movedjapi_start_server
to check if max_clients was reached
In GitLab by @fraunhofer-iis-anon on Oct 17, 2019, 15:52
MR !41
In GitLab by @cstender on Oct 17, 2019, 16:41
Implemented in dev branch.
Just set the maximum number of clients before calling japi_start_server(...), e.g.
japi_set_max_allowed_clients(ctx, 1);
In GitLab by @cstender on Oct 17, 2019, 16:41
closed
In GitLab by @hte on Sep 24, 2019, 17:11
It would be good if you can configure the libjapi so that just one connection is allowed (like it was in v1). Then we could detect in our GUI if already someone is connected to the board and it cannot happen that two peaple are working on the same board (could lead to errors).