lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Luasocket + msgpack
From
: chris 0 <viscousplacebo@
...
>
Date
: Mon, 13 Oct 2014 17:29:35 +0200
Hi,
I'm trying to use luasockets + msgpack together,
as it looks like msgpack supports ltn12, but I just can't
seem to get it to work:
sock = socket.tcp(cv)
src = "">
for _, v in mp.unpacker(src) do
print(v)
end
Results in:
bad argument #1 to unpacker (string or function expected, got table)
Whereas the following works:
local ltn12 = require 'ltn12'
src = "" 'r'))
for _, v in mp.unpacker(src) do
print(v)
end
Is there something wrong with the source that the socket is producing, as it seems to
be a table?
cheers
Chris
Follow-Ups
:
Re: Luasocket + msgpack
,
chris 0
Prev by Date:
Re: speed of Lua/LPeg parsers
Next by Date:
Lua Lost Window Overlays
Previous by thread:
Re: speed of Lua/LPeg parsers
Next by thread:
Re: Luasocket + msgpack
Index(es):
Date
Thread