-
Notifications
You must be signed in to change notification settings - Fork 0
/
neosocksd.lua
65 lines (36 loc) · 972 Bytes
/
neosocksd.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
-- neosocksd.lua: dummy lib
_G.NDEBUG = true
_G.async = pcall
_G.marshal = function(...)
return ""
end
local await = {}
function await.resolve(s) return "" end
function await.invoke(code, addr, ...) return false, ... end
function await.sleep(n) end
function await.idle() end
_G.await = await
local neosocksd = {}
function neosocksd.resolve(s) return "" end
function neosocksd.parse_ipv4(s) return 0 end
function neosocksd.parse_ipv6(s) return 0, 0 end
function neosocksd.setinterval(n) end
function neosocksd.invoke(code, addr, ...) end
function neosocksd.stats() return {} end
function neosocksd.now() return 0 end
_G.neosocksd = neosocksd
local regex = {}
function regex.compile(pat)
return setmetatable({}, regex)
end
function regex:find(s)
return 0, 0
end
function regex:match(s)
return s
end
_G.regex = regex
local zlib = {}
function zlib.compress(s) return "" end
function zlib.uncompress(z) return "" end
_G.zlib = zlib