Channel circle › core 8 URL
8 URL: core-level functions
The functions that make up the core channel itself.
121 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| static void NXSLock(void) | (no comment) | NetXecStreamChannel.c:37 | static |
| static void NXSUnlock(void) | (no comment) | NetXecStreamChannel.c:38 | static |
| static uint32_t Nbe32(const uint8_t *p) | (no comment) | NetXecStreamChannel.c:39 | static |
| static void Nput32(uint8_t *p, uint32_t v) | (no comment) | NetXecStreamChannel.c:40 | static |
| struct NetXecStreamChannel * NetXecStreamGet(void) | (no comment) | NetXecStreamChannel.c:42 | public |
| uint32_t NetXecStreamLast(void) | (no comment) | NetXecStreamChannel.c:43 | public |
| static void NetXecStreamRtOpen(struct Channel *ch) | Runtime open/close slots (standard set). Join/Leave/Read/Write were already wired here; the channel's lifetime stays with its Open/Close functions, so these only fill the slots. | NetXecStreamChannel.c:47 | static |
| static void NetXecStreamRtClose(struct Channel *ch) | (no comment) | NetXecStreamChannel.c:48 | static |
| struct NetXecStreamChannel * OpenNetXecStreamChannel(struct Channel *owner) | (no comment) | NetXecStreamChannel.c:50 | public |
| void CloseNetXecStreamChannel(struct NetXecStreamChannel *nx) | (no comment) | NetXecStreamChannel.c:81 | public |
| uint64_t NetXecStreamJoin(void *peer) | (no comment) | NetXecStreamChannel.c:97 | public |
| void * NetXecStreamLeave(void *peer) | (no comment) | NetXecStreamChannel.c:109 | public |
| static struct NetXecStream * NXSGet(uint32_t h) | (no comment) | NetXecStreamChannel.c:120 | static |
| static uint32_t NXSPut(int64_t fd, uint32_t kind) | (no comment) | NetXecStreamChannel.c:126 | static |
| static int NXSWait(int64_t fd, int for_write, int timeout_ms) | (no comment) | NetXecStreamChannel.c:138 | static |
| static void NXSNonblock(int64_t fd, int on) | (no comment) | NetXecStreamChannel.c:153 | static |
| uint32_t NetXecStreamConnect(const char *host, uint16_t port, uint32_t timeout_ms) | (no comment) | NetXecStreamChannel.c:164 | public |
| uint32_t NetXecStreamListen(const char *host, uint16_t port, int backlog) | (no comment) | NetXecStreamChannel.c:200 | public |
| uint32_t NetXecStreamAccept(uint32_t lh, int timeout_ms) | (no comment) | NetXecStreamChannel.c:217 | public |
| uint16_t NetXecStreamLocalPort(uint32_t h) | (no comment) | NetXecStreamChannel.c:228 | public |
| int NetXecStreamSendAll(uint32_t h, const void *buf, size_t n) | (no comment) | NetXecStreamChannel.c:237 | public |
| int64_t NetXecStreamRecvSome(uint32_t h, void *buf, size_t n) | (no comment) | NetXecStreamChannel.c:257 | public |
| int NetXecStreamPoll(uint32_t h, int timeout_ms) | (no comment) | NetXecStreamChannel.c:276 | public |
| int NetXecStreamSetRecvTimeout(uint32_t h, uint32_t ms) | (no comment) | NetXecStreamChannel.c:283 | public |
| int64_t NetXecStreamFd(uint32_t h) | (no comment) | NetXecStreamChannel.c:295 | public |
| int NetXecStreamSetNonBlock(uint32_t h, int on) | (no comment) | NetXecStreamChannel.c:301 | public |
| int64_t NetXecStreamSendSome(uint32_t h, const void *buf, size_t n, size_t *sent) | One non-blocking-friendly send (for select/poll loops after NetXecStreamSetNonBlock): returns bytes accepted by the kernel (may be < n), 0 if the socket would block (EAGAIN/EWOULDBLOCK/WSAEWOULDBLOCK; retry when writable), -1 on error | NetXecStreamChannel.c:316 | public |
| int NetXecStreamSetNoDelay(uint32_t h, int on) | TCP_NODELAY on/off (Accept does not set it; Connect does). 0 ok, -1 bad handle / error. | NetXecStreamChannel.c:353 | public |
| int NetXecStreamWaitSet(const uint32_t *h, const uint8_t *want, uint8_t *ready, uint32_t n, int timeout_ms) | Wait-set over NXS handles (poll on Linux, WSAPoll on Windows). want[i]: NXS_WAIT_READ | NXS_WAIT_WRITE (0 = skip slot, also skipped for a bad handle). ready[i] gets NXS_WAIT_READ / NXS_WAIT_WRITE / NXS_WAIT_ERR; HUP/ERR also report READ whe | NetXecStreamChannel.c:369 | public |
| int NetXecStreamShutdownWrite(uint32_t h) | (no comment) | NetXecStreamChannel.c:417 | public |
| int NetXecStreamClose(uint32_t h) | (no comment) | NetXecStreamChannel.c:428 | public |
| int NetXecStreamLastErrorInterrupted(void) | (no comment) | NetXecStreamChannel.c:442 | public |
| uint64_t NetXecStreamWrite(void *ch, void *buf, long len) | (no comment) | NetXecStreamChannel.c:444 | public |
| uint64_t NetXecStreamRead(void *ch, void *buf, long len) | (no comment) | NetXecStreamChannel.c:470 | public |
| static char * UrlpoolStrdup(const char *s) | (no comment) | URLChannel.c:48 | static |
| static size_t UrlpoolWriteCb(char *ptr, size_t size, size_t nmemb, void *userdata) | (no comment) | URLChannel.c:60 | static |
| static int UrlpoolProgressCb(void *userdata, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow) | (no comment) | URLChannel.c:94 | static |
| static void UrlpoolFinish(struct URLXfer *x, uint32_t state) | (no comment) | URLChannel.c:104 | static |
| static void UrlpoolStart(struct URLXfer *x) | (no comment) | URLChannel.c:111 | static |
| static void UrlpoolReap(void) | (no comment) | URLChannel.c:158 | static |
| static int UrlpoolThread(void *unused) | (no comment) | URLChannel.c:205 | static |
| int URLPoolInit(uint32_t max_parallel) | (no comment) | URLChannel.c:240 | public |
| void URLPoolShutdown(void) | (no comment) | URLChannel.c:271 | public |
| static struct URLXfer * URLPoolFetch(const char *url, void (*on_done)(struct URLXfer *x, void *user), void *user) | (no comment) | URLChannel.c:314 | static |
| void URLCancel(struct URLXfer *x) | (no comment) | URLChannel.c:345 | public |
| void URLXferFree(struct URLXfer *x) | (no comment) | URLChannel.c:352 | public |
| uint32_t URLActive(void) | (no comment) | URLChannel.c:360 | public |
| static void URLDonePush(struct URLXfer *x, void *user) | Channel: Runtime ring for fire-and-forget fetches | URLChannel.c:369 | static |
| struct URLXfer * URLFetch(const char *url, void (*on_done)(struct URLXfer *x, void *user), void *user) | (no comment) | URLChannel.c:391 | public |
| int URLFetchStart(struct URLChannel *uc, const char *url) | (no comment) | URLChannel.c:403 | public |
| int URLChannelTick(struct URLChannel *uc) | (no comment) | URLChannel.c:410 | public |
| static void URLRuntimeRun(struct Channel *ch, long unused) | (no comment) | URLChannel.c:442 | static |
| struct URLChannel * URLChannelGet(void) | (no comment) | URLChannel.c:448 | public |
| static void URLRtOpen(struct Channel *ch) | Runtime open/close slots (standard set). Join/Leave/Read/Write were already wired here; the channel's lifetime stays with its Open/Close functions, so these only fill the slots. | URLChannel.c:455 | static |
| static void URLRtClose(struct Channel *ch) | (no comment) | URLChannel.c:456 | static |
| static struct URLChannel * OpenURLChannelImpl(void) | (no comment) | URLChannel.c:458 | static |
| struct URLChannel * OpenURLChannel(void) | Idempotent and thread-safe (OpenOnce), 2026-10-10 | URLChannel.c:530 | public |
| void CloseURLChannel(struct URLChannel *uc) | (no comment) | URLChannel.c:540 | public |
| int URLSetHostPort(struct URLChannel *uc, const char *host, uint16_t port) | (no comment) | URLChannel.c:576 | public |
| int URLGetConfig(struct URLChannel *uc, char *host_out, size_t host_cap, uint16_t *port_out) | (no comment) | URLChannel.c:590 | public |
| const char * URLCAInfoPath(void) | Windows store, so cacert.pem ships next to the exe (CURLOPT_CAINFO). | URLChannel.c:607 | public |
| static int UpBad(unsigned char c) | (no comment) | URLChannelParse.c:9 | static |
| int URLChannelParse(const char *url, struct URLParts *u) | (no comment) | URLChannelParse.c:11 | public |
| static void Put32(uint8_t *p, uint32_t v) | (no comment) | URLRequest.c:24 | static |
| static uint32_t Get32(const uint8_t *p) | (no comment) | URLRequest.c:25 | static |
| static void Lk(void) | (no comment) | URLRequest.c:27 | static |
| static void Unlk(void) | (no comment) | URLRequest.c:28 | static |
| void URLCredWipe(void *p, size_t n) | ------------------------------------------------------------------ credentials | URLRequest.c:32 | public |
| int URLCredPath(char *out, size_t cap) | (no comment) | URLRequest.c:38 | public |
| static char * Trim(char *s) | (no comment) | URLRequest.c:49 | static |
| int URLCredLoad(const char *path, char *user, size_t ucap, char *secret, size_t scap) | (no comment) | URLRequest.c:59 | public |
| static size_t OnBody(char *data, size_t sz, size_t n, void *ud) | ------------------------------------------------------------------ transfers | URLRequest.c:96 | static |
| static int OnProgress(void *ud, curl_off_t a, curl_off_t b, curl_off_t c, curl_off_t d) | (no comment) | URLRequest.c:118 | static |
| static void RunRequest(struct URLRequest *r) | (no comment) | URLRequest.c:124 | static |
| static int ThreadMain(void *ud) | (no comment) | URLRequest.c:191 | static |
| static struct URLRequest * NewReq(const char *url, int is_post, const void *post, uint64_t post_len, uint32_t ct, const char *out_path, uint32_t flags) | (no comment) | URLRequest.c:193 | static |
| uint32_t URLRequestRun(const char *url, int is_post, const void *post, uint64_t post_len, uint32_t ct, const char *out_path, uint32_t flags) | (no comment) | URLRequest.c:225 | public |
| uint32_t URLRequestStart(const char *url, int is_post, const void *post, uint64_t post_len, uint32_t ct, const char *out_path, uint32_t flags) | (no comment) | URLRequest.c:234 | public |
| struct URLRequest * URLRequestGet(uint32_t id) | (no comment) | URLRequest.c:244 | public |
| static int Finished(const struct URLRequest *r) | (no comment) | URLRequest.c:250 | static |
| int URLRequestWait(uint32_t id, uint32_t timeout_ms) | (no comment) | URLRequest.c:252 | public |
| void URLRequestCancel(uint32_t id) | (no comment) | URLRequest.c:262 | public |
| void URLRequestRelease(uint32_t id) | (no comment) | URLRequest.c:264 | public |
| void URLRequestShutdown(void) | (no comment) | URLRequest.c:277 | public |
| uint64_t URLChannelJoin(void *peer) | ------------------------------------------------------------------ channel I/O | URLRequest.c:288 | public |
| void * URLChannelLeave(void *peer) | (no comment) | URLRequest.c:289 | public |
| static int URLRecord(const uint8_t *r) | (no comment) | URLRequest.c:291 | static |
| uint64_t URLChannelWrite(void *chan, void *buf, long len) | (no comment) | URLRequest.c:323 | public |
| uint64_t URLChannelRead(void *chan, void *buf, long len) | (no comment) | URLRequest.c:336 | public |
| static void NXSLock(void) | (no comment) | netxec/NetXecStreamChannel.c:39 | static |
| static void NXSUnlock(void) | (no comment) | netxec/NetXecStreamChannel.c:40 | static |
| static uint32_t Nbe32(const uint8_t *p) | (no comment) | netxec/NetXecStreamChannel.c:41 | static |
| static void Nput32(uint8_t *p, uint32_t v) | (no comment) | netxec/NetXecStreamChannel.c:42 | static |
| struct NetXecStreamChannel * NetXecStreamGet(void) | (no comment) | netxec/NetXecStreamChannel.c:44 | public |
| uint32_t NetXecStreamLast(void) | (no comment) | netxec/NetXecStreamChannel.c:45 | public |
| struct NetXecStreamChannel * OpenNetXecStreamChannel(struct Channel *owner) | (no comment) | netxec/NetXecStreamChannel.c:47 | public |
| void CloseNetXecStreamChannel(struct NetXecStreamChannel *nx) | (no comment) | netxec/NetXecStreamChannel.c:77 | public |
| uint64_t NetXecStreamJoin(void *peer) | (no comment) | netxec/NetXecStreamChannel.c:93 | public |
| void * NetXecStreamLeave(void *peer) | (no comment) | netxec/NetXecStreamChannel.c:105 | public |
| static struct NetXecStream * NXSGet(uint32_t h) | (no comment) | netxec/NetXecStreamChannel.c:116 | static |
| static uint32_t NXSPut(int64_t fd, uint32_t kind) | (no comment) | netxec/NetXecStreamChannel.c:122 | static |
| static int NXSWait(int64_t fd, int for_write, int timeout_ms) | (no comment) | netxec/NetXecStreamChannel.c:134 | static |
| static void NXSNonblock(int64_t fd, int on) | (no comment) | netxec/NetXecStreamChannel.c:149 | static |
| uint32_t NetXecStreamConnect(const char *host, uint16_t port, uint32_t timeout_ms) | (no comment) | netxec/NetXecStreamChannel.c:160 | public |
| uint32_t NetXecStreamListen(const char *host, uint16_t port, int backlog) | (no comment) | netxec/NetXecStreamChannel.c:196 | public |
| uint32_t NetXecStreamAccept(uint32_t lh, int timeout_ms) | (no comment) | netxec/NetXecStreamChannel.c:213 | public |
| uint16_t NetXecStreamLocalPort(uint32_t h) | (no comment) | netxec/NetXecStreamChannel.c:224 | public |
| int NetXecStreamSendAll(uint32_t h, const void *buf, size_t n) | (no comment) | netxec/NetXecStreamChannel.c:233 | public |
| int64_t NetXecStreamRecvSome(uint32_t h, void *buf, size_t n) | (no comment) | netxec/NetXecStreamChannel.c:253 | public |
| int NetXecStreamPoll(uint32_t h, int timeout_ms) | (no comment) | netxec/NetXecStreamChannel.c:272 | public |
| int NetXecStreamSetRecvTimeout(uint32_t h, uint32_t ms) | (no comment) | netxec/NetXecStreamChannel.c:279 | public |
| int64_t NetXecStreamFd(uint32_t h) | (no comment) | netxec/NetXecStreamChannel.c:291 | public |
| int NetXecStreamSetNonBlock(uint32_t h, int on) | (no comment) | netxec/NetXecStreamChannel.c:297 | public |
| int64_t NetXecStreamSendSome(uint32_t h, const void *buf, size_t n, size_t *sent) | One non-blocking-friendly send (for select/poll loops after NetXecStreamSetNonBlock): returns bytes accepted by the kernel (may be < n), 0 if the socket would block (EAGAIN/EWOULDBLOCK/WSAEWOULDBLOCK; retry when writable), -1 on error | netxec/NetXecStreamChannel.c:312 | public |
| int NetXecStreamSetNoDelay(uint32_t h, int on) | TCP_NODELAY on/off (Accept does not set it; Connect does). 0 ok, -1 bad handle / error. | netxec/NetXecStreamChannel.c:349 | public |
| int NetXecStreamWaitSet(const uint32_t *h, const uint8_t *want, uint8_t *ready, uint32_t n, int timeout_ms) | Wait-set over NXS handles (poll on Linux, WSAPoll on Windows). want[i]: NXS_WAIT_READ | NXS_WAIT_WRITE (0 = skip slot, also skipped for a bad handle). ready[i] gets NXS_WAIT_READ / NXS_WAIT_WRITE / NXS_WAIT_ERR; HUP/ERR also report READ whe | netxec/NetXecStreamChannel.c:365 | public |
| int NetXecStreamShutdownWrite(uint32_t h) | (no comment) | netxec/NetXecStreamChannel.c:413 | public |
| int NetXecStreamClose(uint32_t h) | (no comment) | netxec/NetXecStreamChannel.c:424 | public |
| int NetXecStreamLastErrorInterrupted(void) | (no comment) | netxec/NetXecStreamChannel.c:438 | public |
| uint64_t NetXecStreamWrite(void *ch, void *buf, long len) | (no comment) | netxec/NetXecStreamChannel.c:440 | public |
| uint64_t NetXecStreamRead(void *ch, void *buf, long len) | (no comment) | netxec/NetXecStreamChannel.c:466 | public |