In article
<f2ccf7b9-b0b5-401a-ba2c-824cf85f5253@k13g2000hse.googlegroups.com>,
> > Hi,
> >
> > I am a Windows/C/C++ programmer who is trying write some code to find
> > and list all usb modems using Xcode 2.5.
Is there a reason you do not use a newer version?
> Additional info:
> All my usb modems appear in the terminal with names that begin with
> tty.usbmodem in the /dev folder.
That may be the case with all your USB modems, but how can you be sure
that that is the case for all USB modems?
> Is there a MAC equivalent of findfirst/findnext of "dev/
> tty.usbmodem*"?
You probably want to go a different route, for instance by calling
system_profiler (check the GUI app System Profiler first. If it provides
the info you need, system_profiler should be able to provide it, too) or
by using I/O Kit, iterating over all USB devices, and checking which
ones are modems. See
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBoo
k/USBDeviceInterfaces/chapter_3_section_3.html#//apple_ref/doc/uid/TP4000
2645-BBIDDHCI>
Reinder
skokiedude - 31 Jul 2008 10:20 GMT
> In article
> <f2ccf7b9-b0b5-401a-ba2c-824cf85f5...@k13g2000hse.googlegroups.com>,
[quoted text clipped - 26 lines]
>
> Reinder
Thanks for your help. I'll look into it.