-
December 1st, 2009, 07:34 PM
#1
_get_osfhandle and _fdopen in wince6.0
Hi, Do we have any alternative functions for _get_osfhandle and _fdopen in wince6.0? Or, is it possible to implement these functions in wince6.0?
Below is my sample code:
====================================================================
HANDLE m_hCommHandle = CreateFile( ... );
struct timeval tv;
fd_set readfds;
int socket = _fdopen(m_hCommHandle);
tv.tv_sec = 2;
tv.tv_usec = 500000;
FD_ZERO(&readfds);
FD_SET(socket, &readfds);
select(socket + 1, &readfds, NULL, NULL, &tv);
====================================================================
How can I implement the above code for wince6.0?
Thanks in Advance
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|