[Vorbis-dev] patch for non-seekable streams on Windows
dimitry at andric.com
Fri Oct 15 13:54:23 PDT 2004
On 2004-10-15 at 01:59:34 Vidur Apparao wrote:
> int offsettest=(f?callbacks.seek_func(f,0,SEEK_CUR) : -1);
> Unfortunately, fseek succeeds for a socket on Windows (even though it's
> not seekable) with the parameters specified.
AFAIK, Windows sockets are not normal C/C++ file handles, in the sense
that you can call read() and write() on them. You have to use recv()
and send(). At least, this is the case with Microsoft Visual C++.
Or are you testing this under Cygwin?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 183 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20041015/6fe57dce/attachment.pgp
More information about the Vorbis-dev