summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-02-22 22:49:23 +0000
committerSteven Barth <steven@midlink.org>2009-02-22 22:49:23 +0000
commitd2b11117f26285186b711271d24733d35e0444a1 (patch)
tree7c08cbd29658d0f0a1331f12156f5ddc97570975 /libs/nixio/lua
parentda6f427d818573f76dd50771f4d60ff693eb8fd9 (diff)
NIXIO: TLS-Support, bugfixes
Diffstat (limited to 'libs/nixio/lua')
-rw-r--r--libs/nixio/lua/nixio/util.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/nixio/lua/nixio/util.lua b/libs/nixio/lua/nixio/util.lua
index cb9fcf56f..5bfcc48d9 100644
--- a/libs/nixio/lua/nixio/util.lua
+++ b/libs/nixio/lua/nixio/util.lua
@@ -20,6 +20,7 @@ module "nixio.util"
local BUFFERSIZE = 8096
local socket = nixio.socket_meta
+local tls_socket = nixio.tls_socket_meta
function socket.recvall(self, len)
local block, code, msg = self:recv(len)
@@ -46,6 +47,7 @@ function socket.recvall(self, len)
return (#data > 1 and table.concat(data) or data[1]), nil, nil, 0
end
+tls_socket.recvall = socket.recvall
function socket.sendall(self, data)
local total, block = 0
@@ -66,6 +68,7 @@ function socket.sendall(self, data)
return total + sent, nil, nil, ""
end
+tls_socket.sendall = socket.sendall
function socket.linesource(self, limit)
limit = limit or BUFFERSIZE
@@ -101,6 +104,7 @@ function socket.linesource(self, limit)
end
end
end
+tls_socket.linesource = socket.linesource
function socket.blocksource(self, bs, limit)
bs = bs or BUFFERSIZE
@@ -128,4 +132,5 @@ function socket.blocksource(self, bs, limit)
return block
end
end
-end \ No newline at end of file
+end
+tls_socket.blocksource = socket.blocksource \ No newline at end of file