Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.41 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.41 KB

BoincRpc

An asynchronous .NET implementation of the BOINC GUI RPC protocol.

The implementation is up-to-date as of BOINC 7.18.1 and (almost) all RPC structures and commands are fully supported. The library is compatible with .NET Standard 2.0.

NuGet license

Usage

Usage of the library should be largely self-explanatory. All functionality is provided via the RpcClient class.

The following snippet shows how to connect and authenticate to a BOINC client and print a list of all current tasks:

using (RpcClient rpcClient = new RpcClient())
{
    await rpcClient.ConnectAsync("localhost", 31416);

    bool authorized = await rpcClient.AuthorizeAsync("57dd16bbf477ff9a76141f1575d4a44c");

    if (authorized)
    {
        foreach (Result result in await rpcClient.GetResultsAsync())
        {
            Console.WriteLine("{0} ({1}): {2:F2}% complete", result.WorkunitName, result.ProjectUrl, result.FractionDone * 100);
        }
    }
}

For information on the RPC commands, see the BOINC wiki.

License

LGPL 3, see LICENSE