Sha256: 6a775297ef318fe57443f36d4d9420050c1d98c489fa578c0abf0413812c0f0e
Contents?: true
Size: 1.18 KB
Versions: 84
Compression:
Stored size: 1.18 KB
Contents
#Net (net.js) ###Functions **@telepathy[2]** `"if_net_req"(verb, url, params, tp_base)` - Perform an HTTP network request with the given VERB. Assign the network request with the correct telepathy pointer. ###Interrupts `int_net_cb(tp, success, info)` - An interrupt that a network request has completed (or failed). `success` is a bool vealue. `info` is a JSON value, `tp` is the pointer that started it `get_int_net_cb_spec()` - Sends [[0, 1, "get_int_net_cb_spec", int_net_cb_spec]] when successful and a string with an error message (string thats not false) when `success` is false. `tp` is the telepathy pointer passed in via `if_net_req` ###Behavior, when int_net_cb is called, it should make a function request to `tp` and pass `tp`, success` and `info` to this function. Additionally, the kernel should set `function(tp, a, b) { int_net_cb_spec = [tp, a, b]; }` at address integer `-3209284741`. ------ ### Overview This driver supports network interfacing. It currently only supports HTTP requests. The `if_net_hint_cancel` can be stubbed if your platform does not support cancelling network requests, but it is best if you can attempt to do so because it will lead to more efficiency.
Version data entries
84 entries across 84 versions & 1 rubygems