Re: Cocoa (or any Mac API) "browse for computer" dialog
Re: Cocoa (or any Mac API) "browse for computer" dialog
- Subject: Re: Cocoa (or any Mac API) "browse for computer" dialog
- From: Jens Alfke <email@hidden>
- Date: Fri, 09 May 2014 14:19:13 -0700
That may be how you think my application should work, but in fact, I (my users) actually DO browse for computers on a network. They need to locate a machine on the LAN that’s running a particular Windows service which is listening on a TCP socket port.
So you do need to browse for a specific service, it’s just that it’s a Windows server that doesn’t use Bonjour for discovery. You’ll need to find out what kind of discovery mechanism it uses and find or write code to browse for that.
There’s no “advertising” of the service There must be, in some form or other, or Windows machines wouldn’t be able to browse for it. They’d have to port-scan every IP address on the LAN.
Why can’t our Mac users have this same functionality? I realize that a Mac doesn’t have the same concept of being on a domain that a Windows machine does, but it is on a LAN, and it does see all those other computers. If the Finder is seeing the Windows computers on your LAN, then it’s using protocols other than Bonjour to do so, because Windows doesn’t use Bonjour (mDNS / DNS-SD). The OS probably has a library that emulates the service-discovery mechanism Windows uses. I don’t know if that API is public, though; I’ve never heard of a public Mac OS API for doing discovery of Windows services.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden