filter_client( pollfds, status.read, vlc.net.POLLIN )
filter_client( pollfds, status.password, vlc.net.POLLIN )
filter_client( pollfds, status.write, vlc.net.POLLOUT )
-
if listeners.tcp then
for _, listener in pairs(listeners.tcp.list) do
for _, fd in pairs({listener:fds()}) do
for _, client in pairs(clients) do
if pollfds[client:fd()] == vlc.net.POLLOUT then
table.insert(wclients,client)
- elseif pollfds[client:fd()] == vlc.net.POLLIN then
+ end
+ if pollfds[client:fd()] == vlc.net.POLLIN then
table.insert(rclients,client)
- else
- del_client( client )
end
end
if listeners.tcp then