<br><font size=2 face="sans-serif">WINCE does have _fileno() function that
can be used to get fd from FILE pointer.</font>
<br><font size=2 face="sans-serif">But I dont know if that would work.
I have only used select() call for socket communication in our system which
is based on WinCE.</font>
<br>
<br><font size=2 face="sans-serif">WINCE documentation states that the
select can only be used for sockets.</font>
<br>
<br><font size=2 face="sans-serif">see the description below.</font>
<br>
<br>
<br><font size=3>This structure is used by various Windows Sockets functions
and service providers, such as the </font><a href=mk:wce50lrfselect.htm><font size=3 color=white><u>select</u></font></a><font size=3>
function, to place sockets into a set for various purposes. For example,
the <i>readfds</i> parameter of the </font><font size=3 color=white><b>select</b></font><font size=3>
function can be used for testing a socket for readability.</font>
<p><font size=3><tt><b>typedef struct fd_set {</b><br>
<b>u_int </b></tt></font><a href=mk:@MSITStore:C:/Windows%20CE%20Tools/eVC4/Htmlhelp/emtools/wcewinsock5.chm::/html/wce50lrffdset.htm><font size=3 color=blue><tt><i><u>fd_count</u></i></tt></font></a><font size=3><tt><b>;</b><br>
<b>SOCKET </b></tt></font><a href=mk:@MSITStore:C:/Windows%20CE%20Tools/eVC4/Htmlhelp/emtools/wcewinsock5.chm::/html/wce50lrffdset.htm><font size=3 color=blue><tt><i><u>fd_array</u></i></tt></font></a><font size=3><tt><i>[FD_SETSIZE]</i><b>;</b><br>
<b>} fd_set;</b></tt></font>
<br><font size=3><b>Members</b></font>
<br><font size=3><b>fd_count</b> </font>
<br><font size=3>Number of sockets in the set. </font>
<br><font size=3><b>fd_array</b> </font>
<br><font size=3>Array of sockets that are in the set. </font>
<br><font size=3><b>Requirements</b></font>
<p><font size=3><b>OS Versions:</b> Windows CE .NET 4.0 and later.<b><br>
Header:</b> Winsock2.h.</font>
<p><font size=3><b>See Also</b></font>
<p><a href=mk:wce50lrfselect.htm><font size=3 color=white><u>sele</u></font></a><a href=mk:wce50lrfwsaeventselect.htm></a>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Ross Finlayson <finlayson@live555.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: live-devel-bounces@ns.live555.com</font>
<p><font size=1 face="sans-serif">03/27/2008 12:47 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
LIVE555 Streaming Media - development & use <live-devel@ns.live555.com></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">LIVE555 Streaming Media - development
& use <live-devel@ns.live555.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Live-devel] Building Live555 streaming
media in Windows Mobile 5.0</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2>You should have following defined in that file.</font><font size=3><br>
</font><font size=2><br>
#define READ_FROM_FILES_SYNCHRONOUSLY 1</font><font size=3><br>
</font><font size=2><br>
That should take care of your problem.</font>
<br>
<br><font size=3>Yes, but that's not necessarily what he wants. Does
Wince allow open files to be handled as select()able sockets (as Windows
XP, and all Unix systems, do)? If so, then you *don't* want file
reads to be performed synchronously.</font>
<br>
<br><font size=3>If, however, Wince is brain-damaged (like many versions
of Windows) and doesn't allow open files to he handled as select()able
sockets, then, yes, you will want to define</font>
<br><font size=3> READ_FROM_FILES_SYNCHRONOUSLY</font>
<br><font size=3><tt>-- <br>
</tt></font>
<br><font size=3><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</font><font size=2><tt>_______________________________________________<br>
live-devel mailing list<br>
live-devel@lists.live555.com<br>
http://lists.live555.com/mailman/listinfo/live-devel<br>
</tt></font>
<br>