Mercurial
view third_party/wrk/src/net.h @ 262:0f45474c1b1a
Add cyberpunk JRPG blog browser
Show the latest posts in the JRPG preview and render the full blog archive and sanitized post details in the Inspect modal.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Thu, 06 Aug 2026 04:08:45 -0700 |
| parents | 94705b5986b3 |
| children |
line wrap: on
line source
#ifndef NET_H #define NET_H #include "config.h" #include <stdint.h> #include <openssl/ssl.h> #include "wrk.h" typedef enum { OK, ERROR, RETRY } status; struct sock { status ( *connect)(connection *, char *); status ( *close)(connection *); status ( *read)(connection *, size_t *); status ( *write)(connection *, char *, size_t, size_t *); size_t (*readable)(connection *); }; status sock_connect(connection *, char *); status sock_close(connection *); status sock_read(connection *, size_t *); status sock_write(connection *, char *, size_t, size_t *); size_t sock_readable(connection *); #endif /* NET_H */