MultiverseSocial.com

Channel circle › core 13 Compiler › bmld

bmld (core 13, sub 9, flat id 217)

23 functions
SignaturePurposeSourceScope
struct BMLDChannel * BMLDChannelGet(void)(no comment)BMLDChannel.c:11public
static uint16_t Rd16(const uint8_t *p)(no comment)BMLDChannel.c:13static
static uint32_t Rd32(const uint8_t *p)(no comment)BMLDChannel.c:14static
static void Wr16(uint8_t *p, uint16_t v)(no comment)BMLDChannel.c:15static
static void Wr32(uint8_t *p, uint32_t v)(no comment)BMLDChannel.c:16static
static struct BMLDChannel * OpenImpl(void)(no comment)BMLDChannel.c:18static
static struct BMLDChannel * OpenBMLDChannelBody(void)(no comment)BMLDChannel.c:35static
static void CloseBMLDChannelBody(struct BMLDChannel *ch)(no comment)BMLDChannel.c:45static
uint64_t BMLDChannelJoin(void *peer)(no comment)BMLDChannel.c:55public
void * BMLDChannelLeave(void *peer)(no comment)BMLDChannel.c:56public
static int RecvN(uint32_t h, uint8_t *b, size_t n)(no comment)BMLDChannel.c:58static
static void Reply(struct BMLDChannel *ch, uint32_t c, uint32_t op, size_t n)(no comment)BMLDChannel.c:69static
static void ReplyErr(struct BMLDChannel *ch, uint32_t c, uint16_t code)(no comment)BMLDChannel.c:77static
static int EndsWith(const char *s, size_t n, const char *suf)(no comment)BMLDChannel.c:86static
static void Serve(struct BMLDChannel *ch, uint32_t c)bml:// raw bytecode: first record is Hdr(BW_OP_WANT_BML, MORE 0, len) + path. No HTTP, no magic: the op in byte 0 is the protocol switch. Reply BODY(doc) or ERROR(code u16be), one write each.BMLDChannel.c:94static
int64_t BMLDFetch(const char *host, uint16_t port, const char *path, uint8_t *out, size_t cap)client side of the same wire (BlitzBrowse bml:// mode). out receives the BMLW doc. Returns doc bytes, -1 transport error, or -(100+code) for an ERROR frame. Network only via NetXecStream.BMLDChannel.c:119public
uint64_t BMLDChannelWrite(void *chp, void *buf, long len)(no comment)BMLDChannel.c:137public
uint64_t BMLDChannelRead(void *chp, void *buf, long len)(no comment)BMLDChannel.c:171public
int BMLDStart(const char *docroot, uint16_t port, int any)(no comment)BMLDChannel.c:183public
int BMLDStep(uint32_t timeout_ms)(no comment)BMLDChannel.c:192public
uint16_t BMLDPort(void)(no comment)BMLDChannel.c:201public
struct BMLDChannel * OpenBMLDChannel(void)Standard runtime entry points (Join/Leave/Read/Write/Open/Close) -- thin wrappers, behaviour of Open/Close unchanged (bodies renamed *Body). See CHREC_RUNTIME in defines.h.BMLDChannel.c:206public
void CloseBMLDChannel(struct BMLDChannel *ch)(no comment)BMLDChannel.c:212public

Core-level functions of core 13 · Core 13 in the full manual

The > Web 4 < Channel Paradigm · full manual · privacy · contact

Hits--