![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
| examples | |
| ex_accept_pool_client.c | |
| ex_accept_pool_server.c | |
| ex_allegro_4.c | |
| ex_atlas.c | |
| ex_avro.c | Avro encoding/decoding example: JSON <-> Avro conversion |
| ex_base64.c | |
| ex_bind_exclusive.c | Regression: a listening bind is EXCLUSIVE on every platform |
| ex_clipboard.c | N_clipboard example + self test: own the CLIPBOARD and PRIMARY selections, round-trip text through them, and prove a separate X client can fetch the text as text/plain;charset=utf-8 (the target Chromium requires) and query the served TARGETS - the case a UTF8_STRING-only backend fails |
| ex_clock_sync.c | |
| ex_common.c | |
| ex_configfile.c | |
| ex_cookies.c | |
| ex_crypto.c | |
| ex_diff.c | |
| ex_digest.c | |
| ex_disk_cache.c | |
| ex_dns.c | |
| ex_ecc.c | |
| ex_entropy.c | |
| ex_exceptions.c | |
| ex_file.c | |
| ex_file_copy.c | |
| ex_fluid.c | |
| ex_fluid_config.c | |
| ex_fluid_config.h | |
| ex_git.c | |
| ex_gui.c | |
| ex_gui_bench.c | |
| ex_gui_button_keys.c | |
| ex_gui_checkbox_label.c | |
| ex_gui_checkbox_release.c | |
| ex_gui_color_picker.c | |
| ex_gui_colorwheel.c | |
| ex_gui_combobox_items.c | |
| ex_gui_combobox_wheel.c | |
| ex_gui_cursor.c | |
| ex_gui_curve.c | |
| ex_gui_custom.c | |
| ex_gui_custom_mouse.c | |
| ex_gui_datagrid.c | |
| ex_gui_datagrid_keys.c | |
| ex_gui_datagrid_sort.c | |
| ex_gui_detach.c | |
| ex_gui_dictionary.c | |
| ex_gui_display_fallback.c | |
| ex_gui_double_click.c | |
| ex_gui_dropmenu.c | |
| ex_gui_frameless_drag.c | |
| ex_gui_global_scroll.c | |
| ex_gui_glyph.c | |
| ex_gui_grid.c | |
| ex_gui_hexview.c | |
| ex_gui_hover.c | |
| ex_gui_isometric.c | |
| ex_gui_kvtable.c | |
| ex_gui_label_fits.c | |
| ex_gui_label_lines.c | |
| ex_gui_layout_persist.c | |
| ex_gui_listbox.c | |
| ex_gui_md.c | |
| ex_gui_multiwin.c | |
| ex_gui_network.c | |
| ex_gui_particles.c | |
| ex_gui_placeholder.c | |
| ex_gui_popup.c | |
| ex_gui_progressbar.c | |
| ex_gui_reentrant.c | |
| ex_gui_round.c | |
| ex_gui_sectionlist.c | |
| ex_gui_slider_default.c | |
| ex_gui_slider_handle.c | |
| ex_gui_slider_step.c | |
| ex_gui_splitpane.c | |
| ex_gui_suggest.c | |
| ex_gui_syntaxview.c | |
| ex_gui_text_shorten.c | |
| ex_gui_textarea_selection.c | |
| ex_gui_tooltip.c | |
| ex_gui_tree_lazy.c | |
| ex_gui_tree_order.c | |
| ex_gui_tree_state.c | |
| ex_gui_window_rect.c | |
| ex_gui_zorder.c | |
| ex_hash.c | |
| ex_hex.c | |
| ex_html.c | |
| ex_http2.c | |
| ex_http2_server.c | |
| ex_http3.c | N_http3 example + self-test: parse a URL (always) and, when built with HAVE_HTTP3, optionally fetch a live https URL over HTTP/3 |
| ex_http_cookie.c | |
| ex_http_form.c | |
| ex_http_mime.c | |
| ex_http_req.c | |
| ex_http_response.c | |
| ex_http_router.c | |
| ex_http_server.c | |
| ex_icc.c | |
| ex_iso_astar.c | |
| ex_json.c | |
| ex_kafka.c | |
| ex_list.c | |
| ex_log.c | |
| ex_markdown.c | |
| ex_module.c | |
| ex_monolith.c | |
| ex_network.c | |
| ex_network.h | |
| ex_network_alpn.c | |
| ex_network_connect_abort.c | |
| ex_network_mock.c | |
| ex_network_proxy.c | |
| ex_network_reactor.c | |
| ex_network_sni.c | |
| ex_network_sse.c | |
| ex_network_ssl.c | |
| ex_network_ssl_hardened.c | |
| ex_network_ssl_hostname.c | |
| ex_network_ssl_nonblock.c | |
| ex_network_tls_defaults.c | |
| ex_network_ws.c | |
| ex_network_ws_limits.c | |
| ex_nstr.c | |
| ex_parallel_for.c | |
| ex_pcre.c | |
| ex_pretty.c | |
| ex_pth.c | |
| ex_query.c | |
| ex_random.c | |
| ex_sha256.c | |
| ex_signals.c | |
| ex_spawn.c | |
| ex_ssrf.c | |
| ex_stack.c | |
| ex_thread_pool_discard.c | Destroy_threaded_pool() does not drop queued jobs silently |
| ex_thread_pool_wait.c | Wait_for_threaded_pool must return when a proc that was STILL RUNNING at the moment of the call finishes |
| ex_threads.c | |
| ex_tiff.c | |
| ex_time_formats.c | |
| ex_trajectory.c | |
| ex_trees.c | |
| ex_url.c | |
| ex_url_safe.c | |
| ex_wrap.c | |
| ex_x509.c | |
| ex_zip.c | |
| ex_zlib.c | |
| include | |
| nilorea | |
| n_3d.h | Simple 3D movement simulation |
| n_aabb.h | AABB3D module headers |
| n_allegro5.h | Allegro5 helpers |
| n_allegro_4.h | Allegro 4 compatibility layer on top of Allegro 5 |
| n_anim.h | Animations graphics and animations parameters |
| n_astar.h | A* Pathfinding API for 2D and 3D grids |
| n_atlas.h | Multi-page sprite atlas: random-access cell blitting from a grid |
| n_avro.h | Avro binary format encoding/decoding with JSON conversion |
| n_base64.h | Base64 encoding and decoding functions using N_STR |
| n_clipboard.h | System clipboard: full X11 selection support on Linux, Win32 clipboard on Windows/MinGW |
| n_clock_sync.h | Clock synchronization estimator for networked games |
| n_common.h | Common headers and low-level functions & define |
| n_config_file.h | Config file reading and writing |
| n_cookies.h | Domain-aware HTTP cookie jar: Set-Cookie parsing and Cookie header building |
| n_crypto.h | Vigenere encoding and decoding functions using N_STR/files |
| n_dead_reckoning.h | Dead Reckoning API for latency hiding in networked games |
| n_diff.h | Line oriented text comparison (Myers shortest edit script) |
| n_digest.h | Message digests, HMAC, PBKDF2, and AES-256-GCM AEAD over the OpenSSL EVP API |
| n_disk_cache.h | A bounded cache of files in one directory, keyed by content |
| n_dns.h | Minimal DNS message helpers: parse a query question and build an A-record response |
| n_ecc.h | Curve25519 primitives: X25519 key agreement and Ed25519 signatures |
| n_entropy.h | Randomness/entropy metrics for byte samples (token-randomness analysis) |
| n_enum.h | Macro to build enums and their tostring counterparts, a reduced version of https://github.com/FredBienvenu/SmartEnum |
| n_exceptions.h | Exception management for C |
| n_files.h | Files configuration header |
| n_fluids.h | Fluid management port from "How to write an Eulerian fluid simulator with 200 lines of code", by Ten Minute Physics ( https://www.youtube.com/watch?v=iKAVRgIrUOU ) |
| n_games.h | Games helpers functions |
| n_git.h | Libgit2 wrapper for Git repository operations |
| n_gui.h | GUI system: buttons, sliders, text areas, checkboxes, scrollbars, dropdown menus, windows |
| n_gui_color.h | A colour picker dialog for N_GUI, and a swatch to show a colour |
| n_gui_colorwheel.h | A colour wheel for N_GUI: one point in a disc, dragged |
| n_gui_curve.h | A curve editor for N_GUI: control points on a curve over [0,1] |
| n_gui_grid.h | A virtualised grid of cells for N_GUI, scrolled vertically |
| n_gui_md.h | Lay out and draw n_markdown's block model with Allegro fonts |
| n_gui_popup.h | A popup menu with submenus for N_GUI, the kind a right click opens |
| n_hash.h | Hash functions and table |
| n_hex.h | Hexadecimal encode/decode helpers |
| n_html.h | Lightweight HTML/XML extraction: links, forms, and sitemap URLs |
| n_http2.h | HTTP/2 (RFC 7540) wire framing plus HPACK header compression (RFC 7541) |
| n_http2_server.h | HTTP/2 (RFC 7540) server-side connection and stream state machine |
| n_http3.h | Minimal blocking HTTP/3 (over QUIC) client |
| n_http_cookie.h | Server-side cookies: read a Cookie header, build a Set-Cookie value |
| n_http_form.h | Strict percent-decoding, query strings and urlencoded forms |
| n_http_mime.h | Media type of a file from its extension, for a static file server |
| n_http_req.h | Pure, strict, bounded parser for an HTTP/1.1 request head |
| n_http_response.h | HTTP/1.1 response: validated headers, memory or file body, framing |
| n_http_router.h | HTTP router: static route tables, typed placeholders, specificity |
| n_http_server.h | HTTP/1.1 server: TLS or plain, deadlines, limits, keep-alive |
| n_icc.h | Finding the ICC colour profile embedded in an image file |
| n_iso_engine.h | Isometric/axonometric tile engine with height maps, terrain transitions, and A* pathfinding integration |
| n_json.h | Small public JSON helper, a thin wrapper over the vendored cJSON |
| n_kafka.h | Kafka generic produce and consume event header |
| n_list.h | List structures and definitions |
| n_log.h | Generic log system |
| n_lz4.h | LZ4 block-compression handler |
| n_markdown.h | Parse a SAFE, strict subset of Markdown into a block / styled-span model |
| n_module.h | Load a shared library at runtime and find its symbols |
| n_network.h | Network Engine |
| n_network_accept_pool.h | Accept pool for parallel connection acceptance (nginx-style) |
| n_network_msg.h | Network messages , serialization tools |
| n_nodup_log.h | Generic No Dup Log system |
| n_openssl_compat.h | One place deciding which OpenSSL/LibreSSL features the build can use |
| n_particles.h | Particles management |
| n_pcre.h | PCRE helpers for regex matching |
| n_pretty.h | Lexical pretty-printers for JSON, XML/HTML and JavaScript text |
| n_pth.h | Reading the tensors of a PyTorch checkpoint (.pth, .pt) without Python |
| n_query.h | Small boolean query language over caller-named fields |
| n_random.h | Cryptographically secure random bytes and hex tokens |
| n_reactor.h | Single-threaded epoll reactor for n_network connections |
| n_sha256.h | SHA-256 in portable C, fed a piece at a time |
| n_signals.h | Signals general handling with stack printing, from https://gist.github.com/jvranish/4441299 |
| n_ssrf.h | SSRF address guard: is a resolved IP a public, routable unicast address? |
| n_stack.h | Stack header definitions |
| n_str.h | N_STR and string function declaration |
| n_thread_pool.h | Thread pool declaration |
| n_tiff.h | Reading the tags of a TIFF structured buffer |
| n_time.h | Timing utilities |
| n_trajectory.h | Trajectory interpolation and dead reckoning for 2D/3D networked simulations |
| n_trees.h | Trees module headers |
| n_url_safe.h | Hardened, bounded URL + HTTP/1.x response-head parsing for a safe fetcher |
| n_user.h | USERS handling for tiny game apps |
| n_windows.h | |
| n_wrap.h | Greedy word-wrap over pre-measured, styled items |
| n_x509.h | X.509 helpers: self-signed CA generation and per-host leaf minting |
| n_zip.h | Reading members out of a ZIP archive, to a file or into memory |
| n_zlib.h | ZLIB compression handler |
| nilorea.h | Header for a monolith use |
| src | |
| n_3d.c | 3D helpers, vector |
| n_aabb.c | AABB3D functions |
| n_allegro5.c | Allegro5 helpers |
| n_allegro_4.c | Allegro 4 compatibility layer on top of Allegro 5 |
| n_anim.c | Anim functions |
| n_astar.c | A* Pathfinding implementation for 2D and 3D grids |
| n_atlas.c | Multi-page sprite atlas: random-access cell blitting from a grid |
| n_avro.c | Avro binary format encoding/decoding with JSON conversion |
| n_base64.c | Base64 encode decode function, adapted from https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-452/CommonUtilitiesLib/base64.c |
| n_base64.d | |
| n_clipboard.c | System clipboard: X11 selections on Linux, Win32 clipboard on Windows (see n_clipboard.h) |
| n_clipboard.d | |
| n_clock_sync.c | Clock synchronization estimator implementation |
| n_common.c | Common function |
| n_common.d | |
| n_config_file.c | Config function |
| n_cookies.c | Domain-aware HTTP cookie jar: Set-Cookie parsing and Cookie header building |
| n_crypto.c | Vigenere encode decode function |
| n_dead_reckoning.c | Dead Reckoning implementation for latency hiding in networked games |
| n_diff.c | Line oriented text comparison (Myers shortest edit script) |
| n_diff.d | |
| n_digest.c | Message digests, HMAC, PBKDF2, and AES-256-GCM AEAD over the OpenSSL EVP API |
| n_disk_cache.c | A bounded cache of files in one directory, keyed by content |
| n_dns.c | Minimal DNS message helpers implementation |
| n_ecc.c | Curve25519 primitives: X25519 key agreement and Ed25519 signatures |
| n_entropy.c | Implementation of the byte-sample randomness metrics |
| n_exceptions.c | ExceptionContextList management for C |
| n_files.c | Cross-platform directory scanning (Linux/Solaris/Windows), optionnal recursion |
| n_fluids.c | Fluid management functions , ported from https://www.youtube.com/watch?v=iKAVRgIrUOU&t=522s |
| n_games.c | Games helpers functions |
| n_git.c | Libgit2 wrapper for Git repository operations |
| n_git.d | |
| n_gui.c | GUI system: buttons, sliders, text areas, checkboxes, scrollbars, dropdown menus, windows |
| n_gui.d | |
| n_gui_color.c | A colour picker dialog for N_GUI, and a swatch to show a colour |
| n_gui_colorwheel.c | A colour wheel for N_GUI: one point in a disc, dragged |
| n_gui_curve.c | A curve editor for N_GUI: control points on a curve over [0,1] |
| n_gui_grid.c | A virtualised grid of cells for N_GUI, scrolled vertically |
| n_gui_md.c | Markdown layout and drawing |
| n_gui_md.d | |
| n_gui_popup.c | A popup menu with submenus for N_GUI, the kind a right click opens |
| n_hash.c | Hash functions and table |
| n_hash.d | |
| n_hex.c | Hexadecimal encode/decode helpers |
| n_html.c | Lightweight HTML/XML extraction: links, forms, and sitemap URLs |
| n_http2.c | HTTP/2 (RFC 7540) wire framing and HPACK (RFC 7541) header compression |
| n_http2_server.c | HTTP/2 server connection and stream state machine (see n_http2_server.h) |
| n_http3.c | Implementation of the minimal blocking HTTP/3 client (see n_http3.h) |
| n_http_cookie.c | Server-side cookies (see n_http_cookie.h) |
| n_http_form.c | Strict percent-decoding, query strings and urlencoded forms (see n_http_form.h) |
| n_http_mime.c | Media type of a file from its extension (see n_http_mime.h) |
| n_http_req.c | HTTP/1.1 request-head parser (see n_http_req.h) |
| n_http_response.c | HTTP/1.1 response builder and writer (see n_http_response.h) |
| n_http_router.c | HTTP router (see n_http_router.h) |
| n_http_server.c | HTTP/1.1 server (see n_http_server.h) |
| n_icc.c | Finding the ICC colour profile embedded in an image file |
| n_iso_engine.c | Isometric/axonometric tile engine with height maps, terrain transitions, and A* pathfinding integration |
| n_json.c | Implementation of the small public JSON wrapper over cJSON |
| n_kafka.c | Generic kafka consume and produce event functions |
| n_list.c | Pointer list functions definitions |
| n_list.d | |
| n_log.c | Generic logging system |
| n_log.d | |
| n_lz4.c | LZ4 block-compression wrappers, zip4_nstr / unzip4_nstr |
| n_lz4.d | |
| n_markdown.c | Safe-subset Markdown parser |
| n_markdown.d | |
| n_module.c | Load a shared library at runtime and find its symbols |
| n_network.c | Network Engine |
| n_network.d | |
| n_network_accept_pool.c | Accept pool for parallel connection acceptance (nginx-style) |
| n_network_msg.c | Network messages function |
| n_network_msg.d | |
| n_nodup_log.c | Generic no duplicate logging system |
| n_particles.c | Particle function file for SantaHack 2012 |
| n_pcre.c | PCRE helpers for regex matching |
| n_pcre.d | |
| n_pretty.c | Lexical pretty-printers for JSON, XML/HTML and JavaScript text |
| n_pretty.d | |
| n_pth.c | Reading the tensors of a PyTorch checkpoint without Python |
| n_query.c | Implementation of the small boolean field-query language |
| n_random.c | Cryptographically secure random bytes and hex tokens |
| n_reactor.c | Single-threaded epoll reactor |
| n_reactor.d | |
| n_sha256.c | SHA-256 in portable C, fed a piece at a time (FIPS 180-4) |
| n_signals.c | Signals general handling with stack printing |
| n_ssrf.c | SSRF address guard (see n_ssrf.h) |
| n_stack.c | Stack functions definitions |
| n_str.c | String functions, everything you need to use string is here |
| n_str.d | |
| n_thread_pool.c | Thread pool functions |
| n_tiff.c | Reading the tags of a TIFF structured buffer |
| n_time.c | Common time functions |
| n_time.d | |
| n_trajectory.c | Trajectory interpolation and dead reckoning for 2D/3D |
| n_trees.c | Tree functions |
| n_url_safe.c | Hardened URL + HTTP/1.x response-head parsing (see n_url_safe.h) |
| n_user.c | Network user handling functions |
| n_wrap.c | Greedy word-wrap over pre-measured, styled items |
| n_wrap.d | |
| n_x509.c | X.509 helpers implementation: CA generation and per-host leaf minting |
| n_zip.c | Reading members out of a ZIP archive, to a file |
| n_zlib.c | ZLIB compression handler |
| n_zlib.d |