Register a callback for new data available on a socket
Posted: 03 May 2013 09:26
Hello!
So, I'm trying to create a plugin that listens for data on a tcp socket and once it has some data, displays that on the OSD. However, I need to wait for data on the socket using the poll() method, and because of that, VLC thinks that the plugin has crashed. Please can you suggest a better way to do this?
Here is the current code: https://github.com/pathsny/vlc_simulwat ... lwatch.lua
So, I'm trying to create a plugin that listens for data on a tcp socket and once it has some data, displays that on the OSD. However, I need to wait for data on the socket using the poll() method, and because of that, VLC thinks that the plugin has crashed. Please can you suggest a better way to do this?
Here is the current code: https://github.com/pathsny/vlc_simulwat ... lwatch.lua