Re: help scanning for network printers
Re: help scanning for network printers
- Subject: Re: help scanning for network printers
- From: Alan Dail <email@hidden>
- Date: Sat, 16 Jul 2005 12:01:53 -0400
sorry for the duplicate request, I got a message saying the first
email bounced.
On Jul 16, 2005, at 11:59 AM, Alan Dail wrote:
The network printer I'm searching for doesn't use Bonjour, but I do
know what port it uses. What I'd like to do is be able to scan my
local subnet for the device instead of requiring the user to know
it's IP address and key it in. I tried opening a connection to the
device - the trouble is, if I try this on an address there is no
device, it takes about 60 seconds to time out. Clearly this won't
work if I need to scan 255 addresses to find the one or ones that
actually are the printers I'm looking for. How do I accomplish
this and what is the preferred network API for communicating with
TCP/IP devices? I've tried cocoa, but found the API to be too
limiting (unless I overlooked something). I've also tried
OpenTransport as well as the native unix sockets API. Open
transport seems to work the best but still has the long timeout for
what I'm trying to do - is that what people are using or is there
perhaps something I'm overlooking? And is open transport thread
safe when using standard Cocoa threads?
Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden