Page 1 of 1

Send UDP packet

Posted: 28 Jan 2013 19:28
by ismdiego
Hi all,

I would like to send an UDP packet with specific current input object information (like name, elapsed time, etc.).

I have the code ready to get the required information, but I do not know how to send an UDP packet with that information :? .

Please, can you help me with that? I see that UDP library is not part of standard LUA library, so I guess I can not use it :( .

Reading LUA "readme.txt" I found a "net" VLC specific LUA module, with "net.send( fd, string, [length] )" and "net.write( fd, string, [length] )" methods than seem interesting :D , if only I know what file descriptor (fd) to put it there to use UDP packets (if possible).

Any other alternatives to send UDP packets? In fact I would like to do an inter process communication (to an external app). I looked for some OS "pipes" support but I ended trying to implement this using UDP.

BTW, I am on Windows OS (althought I think this should work on every platform).

Many thanks for any information/hint about this :D

Re: Send UDP packet

Posted: 08 Apr 2013 23:48
by snark.real
I've managed to make luasocket work on windows viewtopic.php?f=29&t=109033#p369412
But not for Linux, unfortunately.