| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | findfirst() |
>SL> > > You do get the really spiffy speed-enhancing quality of returning > > more than one filename at a time if you use the OS/2 method. >SL> > > And this is a major bonus when used on a network that has a heavy > traffic load. I wish that more OS/2 applications writers were aware > of this little trick. So what general strategy should be employed? Case in point: I'm writing a FidoNet message tosser. I would like to get all the names of the ARCmail bundles that are waiting in an inbound area, so that they can be decompressed and processed. Additionally, I want to process them in order by creation date. I have no idea how many bundles may be queued up, perhaps one, perhaps a few dozen. Since I am only interested in the level 1 information, then I suppose that I would have to allocate enough storage to hold a FILEFINDBUF3 data structure for all the potential files, correct? What should I do, just make some determination in advance as to the maximum allowable number of files in the inbound area at one time, such as 100, 200, or perhaps 1000? I'm being somwehat facetious here of course, but I would like to understand how it works. If I use the routines in the Watcom runtime library, don't they have to actually call to the OS/2 API under the covers anyway? Thanks in advance. --- Colt45 0.91.b* Origin: FidoNet Magnum BBS * (913) 242-1204 * (1:2801/20) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 712/407 515 SEEN-BY: 712/628 704 713/888 800/1 7877/2809 @PATH: 2801/20 1 280/1 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.