Boinc  RPC - Thin abstraction for BOINC’s Client RPC
1 Establishing connections and sending raw requests
brpc-conn
brpc-connect
brpc-go
2 Helpers and wrappers
brpc-auth
3 Aliases
3.1 Aliases of brpc-connect
make-brpc-conn
8.12

BoincRPC - Thin abstraction for BOINC’s Client RPC🔗ℹ

parnikkapore

 (require boincrpc) package: boincrpc

Thin (but maybe soon to be thicker) abstraction layer for using BOINC’s Client RPC on Racket.

1 Establishing connections and sending raw requests🔗ℹ

struct

(struct brpc-conn (iport oport))

  iport : input-port?
  oport : output-port?
Represents a ClientRPC connection to a BOINC client.

The constructor is not available - please use brpc-connect to start a new connection.

procedure

(brpc-connect [host port])  brpc-conn?

  host : string? = "localhost"
  port : port-number? = "31416"
Opens a connection to the specified BOINC client.

procedure

(brpc-go conn [request])  xexpr?

  conn : brpc-conn?
  request : xexpr? = '(auth1)
Sends a request to the BOINC client through conn, waits for the reply, then returns the reply.

You can also call an instance of brpc-conn? directly like a function to send a request - pass in request as the only argument.

2 Helpers and wrappers🔗ℹ

procedure

(brpc-auth conn [password])  boolean?

  conn : brpc-conn?
  password : string? = ""
Authenticates the connection. Returns #t on success, #f on failure.

3 Aliases🔗ℹ

3.1 Aliases of brpc-connect🔗ℹ

procedure

(make-brpc-conn [host port])  brpc-conn?

  host : string? = "localhost"
  port : port-number? = "31416"
For the SICP Schemers out there