lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>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