[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua and networking - possibly basic question
- From: Steve Kemp <steve@...>
- Date: Sat, 29 Oct 2005 20:42:19 +0100
On Sat, Oct 29, 2005 at 09:24:05PM +0200, Ashwin Hirschi wrote:
> Lua strings may contain 0x00 characters.
Great, that is reassuring.
> One way to improve the code returning the result would be to simply replace
> it with:
>
> lua_pushlstring(L, buffer, n);
Thanks, I'm still pretty new to interfacng with Lua and haven't fully
explored the functionas available.
> This would get you on your way to enable sending images, for instance
> [something the current approach won't handle...].
I can send images already ...
> You might want the check return value from the read() call as well.
Noted, thanks for your help.
Steve
--