summaryrefslogtreecommitdiff
path: root/script/meta/bee
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-05-22 18:03:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-05-22 18:04:01 +0800
commitd8f2ce4a7e7068f0d81cd48a4589226eec249415 (patch)
tree6ec1054ef804d658f67f8daa74f16c78c6b52478 /script/meta/bee
parent86e2d589c30e73198226b11c4248a31fada4e620 (diff)
downloadlua-language-server-d8f2ce4a7e7068f0d81cd48a4589226eec249415.zip
better socket
Diffstat (limited to 'script/meta/bee')
-rw-r--r--script/meta/bee/socket.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/meta/bee/socket.lua b/script/meta/bee/socket.lua
index b77c498b..1724cbb3 100644
--- a/script/meta/bee/socket.lua
+++ b/script/meta/bee/socket.lua
@@ -22,6 +22,10 @@ function socket.select(readfds, writefds, timeout) end
---@return bee.socket.fd
function socket.fd(handle) end
+---@return bee.socket.fd
+---@return bee.socket.fd
+function socket.pair() end
+
---@class bee.socket.fd
local fd = {}
@@ -53,6 +57,9 @@ function fd:send(content) end
---@return lightuserdata
function fd:handle() end
+---@return lightuserdata
+function fd:detach() end
+
---@return boolean
function fd:status() end