Make server_connect_to() return a bool

The resulting socket is accessible from the server instance, there is no
need to return it.

This paves the way to use several sockets in parallel.
This commit is contained in:
Romain Vimont
2019-05-28 13:41:19 +02:00
parent 6edb1294f0
commit 5a431cdf9b
3 changed files with 7 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ server_start(struct server *server, const char *serial,
const char *crop, bool send_frame_meta);
// block until the communication with the server is established
socket_t
bool
server_connect_to(struct server *server);
// disconnect and kill the server process