On Fri, 2023-01-20 at 18:31 +0100, Ben Engbers wrote:
My question is how do I configure the client side of the socket for optimal use?
Whether reading from a socket is non-blocking is a function of the API you use on the client, not the server end.
Likely you can find a C++ library that does what you need; if not, it's usually a matter of arranging your client around a select() loop (or poll() if you prefer).
https://www.reddit.com/r/C_Programming/comments/wr5pjs/select_on_nonblocking... has some links to examples, or a Web search for non-blocking socket select example, gets results.
liam