summaryrefslogtreecommitdiff
path: root/xmake/modules/private/service/socket_stream.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/service/socket_stream.lua')
-rw-r--r--xmake/modules/private/service/socket_stream.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/service/socket_stream.lua b/xmake/modules/private/service/socket_stream.lua
index 74f71c330..1b428a936 100644
--- a/xmake/modules/private/service/socket_stream.lua
+++ b/xmake/modules/private/service/socket_stream.lua
@@ -37,6 +37,11 @@ function socket_stream:init(sock)
self._WCACHE_SIZE = 0
end
+-- get socket
+function socket_stream:sock()
+ return self._SOCK
+end
+
-- flush data
function socket_stream:flush()
local cache = self._WCACHE