[FFmpeg-devel] MinGW network support
Mon May 21 15:49:15 CEST 2007
> > Correct explanation:
> > winsock is that broken, that it returns socket numbers like 1700, 1803,
> > 1850. Without any linearity, nor starting at 0/1.
> > While FD_SETSIZE is set to a relative low number, this will cause the
> > poll not to work with those socket numbers, thus ffserver wont work.
> > I know this is a bad hack, but winsock documentation itself prefers
> > this. Lol.
> FD sets are implemented as arrays of FD numbers in Winsock, not as bitmasks,
> so actual FD numbers are irrelevant when using fd_set and FD_* macros.
> Using an FD_SETSIZE of 32768 wastes 128k of memory, and it would be quite
> slow if that many descriptors were actually used.
Without this hack, ffserver is not working. Can you give me an
explanation why does Winsock returns socket numbers like 1754 and 1800?
Can I influence this to return normal socket numbers starting from 3 ?
More information about the ffmpeg-devel