2022-04-24 16:59:22 +00:00
|
|
|
#ifndef COSMOPOLITAN_TOOL_NET_LFUNCS_H_
|
|
|
|
#define COSMOPOLITAN_TOOL_NET_LFUNCS_H_
|
|
|
|
#include "net/http/url.h"
|
|
|
|
#include "third_party/lua/lua.h"
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
int LuaMaxmind(lua_State *);
|
|
|
|
int LuaRe(lua_State *);
|
|
|
|
int luaopen_argon2(lua_State *);
|
|
|
|
int luaopen_lsqlite3(lua_State *);
|
|
|
|
|
2022-07-23 03:44:24 +00:00
|
|
|
int LuaBarf(lua_State *);
|
2022-04-25 15:30:14 +00:00
|
|
|
int LuaBenchmark(lua_State *);
|
2022-04-29 13:06:23 +00:00
|
|
|
int LuaBin(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaBsf(lua_State *);
|
|
|
|
int LuaBsr(lua_State *);
|
|
|
|
int LuaCategorizeIp(lua_State *);
|
2022-05-16 23:49:20 +00:00
|
|
|
int LuaCompress(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaCrc32(lua_State *);
|
|
|
|
int LuaCrc32c(lua_State *);
|
2024-01-20 09:06:19 +00:00
|
|
|
int LuaCurve25519(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaDecimate(lua_State *);
|
2023-10-12 03:06:20 +00:00
|
|
|
int LuaDecodeBase32(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaDecodeBase64(lua_State *);
|
2023-07-06 22:38:08 +00:00
|
|
|
int LuaDecodeHex(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaDecodeLatin1(lua_State *);
|
2022-07-08 16:47:04 +00:00
|
|
|
int LuaDeflate(lua_State *);
|
2023-10-12 03:06:20 +00:00
|
|
|
int LuaEncodeBase32(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaEncodeBase64(lua_State *);
|
2023-07-06 22:38:08 +00:00
|
|
|
int LuaEncodeHex(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaEncodeLatin1(lua_State *);
|
|
|
|
int LuaEscapeFragment(lua_State *);
|
|
|
|
int LuaEscapeHost(lua_State *);
|
|
|
|
int LuaEscapeHtml(lua_State *);
|
|
|
|
int LuaEscapeIp(lua_State *);
|
|
|
|
int LuaEscapeLiteral(lua_State *);
|
|
|
|
int LuaEscapeParam(lua_State *);
|
|
|
|
int LuaEscapePass(lua_State *);
|
|
|
|
int LuaEscapePath(lua_State *);
|
|
|
|
int LuaEscapeSegment(lua_State *);
|
|
|
|
int LuaEscapeUser(lua_State *);
|
|
|
|
int LuaFormatHttpDateTime(lua_State *);
|
|
|
|
int LuaFormatIp(lua_State *);
|
|
|
|
int LuaGetCpuCore(lua_State *);
|
2022-04-26 04:16:05 +00:00
|
|
|
int LuaGetCpuCount(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaGetCpuNode(lua_State *);
|
|
|
|
int LuaGetCryptoHash(lua_State *);
|
2023-06-03 15:12:13 +00:00
|
|
|
int LuaGetHostIsa(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaGetHostOs(lua_State *);
|
|
|
|
int LuaGetHttpReason(lua_State *);
|
|
|
|
int LuaGetLogLevel(lua_State *);
|
|
|
|
int LuaGetMonospaceWidth(lua_State *);
|
|
|
|
int LuaGetRandomBytes(lua_State *);
|
|
|
|
int LuaGetTime(lua_State *);
|
|
|
|
int LuaHasControlCodes(lua_State *);
|
2022-04-29 13:06:23 +00:00
|
|
|
int LuaHex(lua_State *);
|
2023-07-06 22:38:08 +00:00
|
|
|
int LuaHighwayHash64(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaIndentLines(lua_State *);
|
2022-07-08 16:47:04 +00:00
|
|
|
int LuaInflate(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaIsAcceptableHost(lua_State *);
|
|
|
|
int LuaIsAcceptablePath(lua_State *);
|
|
|
|
int LuaIsAcceptablePort(lua_State *);
|
|
|
|
int LuaIsHeaderRepeatable(lua_State *);
|
|
|
|
int LuaIsLoopbackIp(lua_State *);
|
|
|
|
int LuaIsPrivateIp(lua_State *);
|
|
|
|
int LuaIsPublicIp(lua_State *);
|
|
|
|
int LuaIsReasonablePath(lua_State *);
|
|
|
|
int LuaIsValidHttpToken(lua_State *);
|
|
|
|
int LuaLemur64(lua_State *);
|
|
|
|
int LuaMd5(lua_State *);
|
|
|
|
int LuaMeasureEntropy(lua_State *);
|
2022-04-29 13:06:23 +00:00
|
|
|
int LuaOct(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaParseHost(lua_State *);
|
|
|
|
int LuaParseHttpDateTime(lua_State *);
|
|
|
|
int LuaParseIp(lua_State *);
|
|
|
|
int LuaParseParams(lua_State *);
|
|
|
|
int LuaPopcnt(lua_State *);
|
|
|
|
int LuaRand64(lua_State *);
|
|
|
|
int LuaRdrand(lua_State *);
|
|
|
|
int LuaRdseed(lua_State *);
|
|
|
|
int LuaRdtsc(lua_State *);
|
2022-06-23 10:39:44 +00:00
|
|
|
int LuaResolveIp(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaSetLogLevel(lua_State *);
|
|
|
|
int LuaSha1(lua_State *);
|
|
|
|
int LuaSha224(lua_State *);
|
|
|
|
int LuaSha256(lua_State *);
|
|
|
|
int LuaSha384(lua_State *);
|
|
|
|
int LuaSha512(lua_State *);
|
|
|
|
int LuaSleep(lua_State *);
|
|
|
|
int LuaSlurp(lua_State *);
|
2022-05-16 23:49:20 +00:00
|
|
|
int LuaUncompress(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaUnderlong(lua_State *);
|
2024-04-12 15:10:27 +00:00
|
|
|
int LuaUuidV4(lua_State *);
|
2022-04-24 16:59:22 +00:00
|
|
|
int LuaVisualizeControlCodes(lua_State *);
|
|
|
|
|
|
|
|
void LuaPushUrlView(lua_State *, struct UrlView *);
|
|
|
|
char *FormatUnixHttpDateTime(char *, int64_t);
|
|
|
|
|
2024-02-22 22:12:18 +00:00
|
|
|
void launch_browser(const char *);
|
|
|
|
|
2022-04-24 16:59:22 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_TOOL_NET_LFUNCS_H_ */
|