Skip to content

Async .NET implementation of the BOINC GUI RPC protocol

License

Notifications You must be signed in to change notification settings

chausner/BoincRpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Async .NET implementation of the BOINC GUI RPC protocol

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages