[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Help with Lua Socket Library
- From: Cuero Bugot <cbugot@...>
- Date: Wed, 3 Aug 2011 09:48:55 -0700
>Is there any way to send a 4-byte integer with the function send ()? Or some way to convert the lua string "1", for example, to the bytes corresponding to C-integer 1?
You could use LHF lpack library [1] for that purpose.
[1] http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lpack