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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user