It is not a very Qt like API, it seems to have blocking I/O calls.
In Qt almost everything that causes I/O with non deterministic times requirements it asynchronous.
As an application developer I would expect some form of status and progress notification when dealing with an API that accesses a network service.
See QNetworkAccessManager for an idea how to encapsulate long running asynchronous operations with the "job" pattern.
Cheers,
_
Bookmarks