Page 1 of 1

network poll error

Posted: 10 Jan 2010 02:57
by alphanoob
Hi everybody,

i use VLC on Win7 and I would love to use the HTTP-Interface but I can't start it up. The Telnet doesn't work either. If I launch a console interface, it writes continously

Code: Select all

[0x2670acc] main http server error: polling error: Non-socket handle specified
or (after i try to launch a telnet interface):

Code: Select all

[0x590498c] telnet interface error: network poll error
since I have no idea what that could mean and I found nothing on google or in this forum, I would welcome any suggestions, what I can do about this. What exactly is a "polling error"? And which socket causes the problem? Maybe it does interfere with my Apache installation (although the service is deactivated).

Thanks for your help,
alphanoob

Re: network poll error

Posted: 10 Jan 2010 14:05
by VLC_help
And which socket causes the problem? Maybe it does interfere with my Apache installation (although the service is deactivated).
You tried different port numbers for VLC?

Re: network poll error

Posted: 10 Jan 2010 14:17
by alphanoob
'course i did.

Re: network poll error

Posted: 11 Jan 2010 13:53
by VLC_help
For some reason the socket handle isn't valid. There was bug related to this on 0.9 nightlies but I assume you are using 1.0.3 where it shouldn't happen.

Re: network poll error

Posted: 11 Jan 2010 14:42
by alphanoob
Hi,

thanks for that info. Maybe I'll do some research on that bug although I use 1.0.3. Maybe I should also try a downgrade to 0.8.

Thanks again,
alphanoob

Re: network poll error

Posted: 12 Jan 2010 13:04
by pamelaluck
Hello,
This is possible solution of network poll error.
#include <sys/poll.h>
int poll(struct pollfd *ufds, unsigned int nfds, int timeout);
This function is very similar to select() in that they both watch sets of file descriptors for events, such as incoming data ready to recv(), socket ready to send() data to, out-of-band data ready to recv(), errors, etc.
The basic idea is that you pass an array of nfds struct pollfds in ufds, along with a timeout in milliseconds (1000 milliseconds in a second.) The timeout can be negative if you want to wait forever. If no event happen on any of the socket descriptors by the timeout, poll() will return.