summaryrefslogtreecommitdiff
path: root/script/meta/bee
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-18 11:56:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-18 11:56:30 +0800
commit793fa4abf906362ba43bf2ea1ffbe7083499805a (patch)
tree8718c54ae16163e6bb6ca40f12e0af4bc342a88e /script/meta/bee
parent0b2e8223883000278d584427919400f6a222b853 (diff)
downloadlua-language-server-793fa4abf906362ba43bf2ea1ffbe7083499805a.zip
更新 bee.net
Diffstat (limited to 'script/meta/bee')
-rw-r--r--script/meta/bee/socket.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/meta/bee/socket.lua b/script/meta/bee/socket.lua
index 1724cbb3..55c349a6 100644
--- a/script/meta/bee/socket.lua
+++ b/script/meta/bee/socket.lua
@@ -8,9 +8,13 @@
---| 'udp6'
---@class bee.socket
----@overload fun(protocol: bee.socket.protocol): bee.socket.fd?, string?
local socket = {}
+---@param protocol bee.socket.protocol
+---@return bee.socket.fd?
+---@return string?
+function socket.create(protocol) end
+
---@param readfds? bee.socket.fd[]
---@param writefds? bee.socket.fd[]
---@param timeout number