mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-14 22:38:07 +11:00
29 lines
343 B
Lua
29 lines
343 B
Lua
|
local c_sock = {}
|
||
|
local h_sock = {}
|
||
|
|
||
|
function c_sock:read(a)
|
||
|
local dat = self.data:sub(1, a-1)
|
||
|
self.data = self.data:sub(a)
|
||
|
return dat
|
||
|
end
|
||
|
|
||
|
function c_sock:recieve(a)
|
||
|
|
||
|
end
|
||
|
|
||
|
function c_sock:write(d)
|
||
|
|
||
|
end
|
||
|
|
||
|
function c_sock:send(d)
|
||
|
|
||
|
end
|
||
|
|
||
|
function c_sock:close()
|
||
|
|
||
|
end
|
||
|
|
||
|
function c_sock:timeout(t)
|
||
|
if t then self.to = t endsi
|
||
|
return self.to
|
||
|
end
|