Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Implementating "select" functionality for Windows

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Implementating "select" functionality for Windows Page: [1]
Login
Message << Older Topic   Newer Topic >>
Implementating "select" functionality for Win... - Apr. 19, '06, 6:07:51 AM   
kunduanil

 

Posts: 2
Joined: Apr. 19, '06,
Status: offline
Hi All,
I am currently involved in porting an Unix based app to Windows. I need to implement select/poll functionality on Windows OS. For sockets I am able to do but for other file descriptiors I am not able to achieve this functionalty. I had studied in Unix mannual and some other stuff which says file descriptiors does not behave in same manner as in Unix. So can anyone help me in this matter.
Regards
Anil
Post #: 1
RE: Implementating "select" functionality for... - Apr. 19, '06, 10:22:16 AM   
woehlkmp

 

Posts: 102
Status: offline
poll() doesn't work. Don't even try. However, other than the timeout being broken, I've had no problems using select() on fd's (on pipes, anyway - see first link). Unfortunately, if you actually need responsiveness without tightlooping, you're SOL.

Do you have an example of something that isn't working? What are you trying to accomplish?

(in reply to kunduanil)
Post #: 2
RE: Implementating "select" functionality for... - Apr. 19, '06, 10:45:28 AM   
kunduanil

 

Posts: 2
Joined: Apr. 19, '06,
Status: offline
Actully we are having some Unix code and that we need to port to Windows. We donot have architecture of this piece. So I am converting line by line code to equivlant in Windows.

(in reply to woehlkmp)
Post #: 3
RE: Implementating "select" functionality for... - Apr. 19, '06, 10:53:13 AM   
woehlkmp

 

Posts: 102
Status: offline
Ok, I'm confused... you are NOT porting it to Interix? You are porting it to native Windows code? If so, why are you asking on an Interix forum and not a Windows programming forum?

Regardless, no one is going to be able to help you unless you can give us a better idea of what you're trying to do. By "other file descriptors", do you mean pipes (e.g. stdin, stdout, etc) or file-system files? Are you trying to determine if a fs-file has changed or if there is new data on a pipe, or are you trying to find out if a write will not block? Or are none of my guesses correct? Or are all of them correct? We will be much more able to assist if you can be more specific!

(in reply to kunduanil)
Post #: 4
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Implementating "select" functionality for Windows Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047