Send UDP packet

Discuss your Lua playlist, album art and interface scripts.
ismdiego
New Cone
New Cone
Posts: 1
Joined: 28 Jan 2013 19:12

Send UDP packet

Postby ismdiego » 28 Jan 2013 19:28

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

snark.real
Blank Cone
Blank Cone
Posts: 11
Joined: 13 Mar 2013 13:07
VLC version: 2.0.5 Twoflower
Operating System: Arch Linux

Re: Send UDP packet

Postby snark.real » 08 Apr 2013 23:48

I've managed to make luasocket work on windows viewtopic.php?f=29&t=109033#p369412
But not for Linux, unfortunately.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 15 guests