Skip to content

johniez/frpcaclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

frpcaclient

FastRPC async client.

TODO

Deps

libcurl, libfastrpc

Desired usage:

#include <frpcaclient.h>

int main() {
    FRPC::Pool_t pool;

    frpc::aclient::ServerProxy proxy;
    frpc::aclient::Request req("http://host:port/RPC2");
    // prepare call someRemoteMethod(1)
    req.prepare("someRemoteMethod", pool.Int(1));

    proxy.add(req);
    // prepare and add more requests... and then launch it.
    proxy.wait();

    if (req.success()) {
        // process result ... FRPC::Struct(req.getResponse(pool));
    } else {
        // fail message: ... std::cerr << req.getError();
        return 1;
    }
    return 0;
}

About

FastRPC async client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages