8.16.0.4
BoincRPC - Thin abstraction for BOINC’s Client RPC
(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
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
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
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