[Live-devel] Building Live555 streaming media in Windows Mobile 5.0

Ishwar.Jasuja at jci.com Ishwar.Jasuja at jci.com
Thu Mar 27 13:08:54 PDT 2008


WINCE does have _fileno() function that can be used to get fd from FILE 
pointer.
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.

WINCE documentation states that the select can only be used for sockets.

see the description below.


This structure is used by various Windows Sockets functions and service 
providers, such as the select function, to place sockets into a set for 
various purposes. For example, the readfds parameter of the select 
function can be used for testing a socket for readability.
typedef struct fd_set {
  u_int fd_count;
  SOCKET fd_array[FD_SETSIZE];
} fd_set;
Members
fd_count 
Number of sockets in the set. 
fd_array 
Array of sockets that are in the set. 
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Winsock2.h.
See Also
sele





Ross Finlayson <finlayson at live555.com> 
Sent by: live-devel-bounces at ns.live555.com
03/27/2008 12:47 PM
Please respond to
LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>


To
LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
cc

Subject
Re: [Live-devel] Building Live555 streaming media in Windows Mobile 5.0






You should have following defined in that file.

#define READ_FROM_FILES_SYNCHRONOUSLY 1

That should take care of your problem.

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.

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
        READ_FROM_FILES_SYNCHRONOUSLY
-- 


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20080327/6fc87258/attachment.html 


More information about the live-devel mailing list