std1.0.0-beta-7 SafeC docs

std :: rpc::server_fn

Function std::server_fn_call

#include <std/rpc/server_fn.h> source · definition

struct Value server_fn_call(
    const &char host,
    unsigned short port,
    const &char name,
    const ?&Value args,
    ?&int ok,
)

Calls the server function named 'name' at host:port with 'args' (may be NULL for a no-argument function — sent as a JSON null). *ok is set to 0 (result is VAL_NULL) on any transport/handler/JSON failure.