Retoor software development Projects Research SearchXNG
Register Sign In

11 lines
235 B
C
Raw Normal View History

feat: add backup files for rlib core modules including arena, nsock, and autocomplete Introduces initial backup snapshots of core rlib components: arena allocator with construct/new/alloc/free/reset API, nsock network socket wrapper with select-based event loop, autocomplete string list implementation, argument parser utilities, and main dispatcher for httpd/rmerge/rcov/rcase tools. Includes MIT license header and rlib.h umbrella include with 30+ submodule headers.
2025-03-20 04:16:06 +01:00
#include "nsock.h"
void on_connect(int fd) { printf("connect\n"); }
void on_data(int fd) { printf("data\n"); }
void on_close(int fd) { printf("close\n"); }
int main() {
nsock(9999, on_connect, on_data, on_close);
return 0;
}
Reference in New Issue Copy Permalink
2ffc9b82ed
rlib/.backup.1.nsock.c
Response time: 35ms
Mail Licenses API