Thanks Jens - always a great help.

Regards,

Phil

On May 31, 2010, at 4:19 PM, Jens Alfke wrote:

> 
> On May 31, 2010, at 6:50 AM, Philip Vallone wrote:
> 
>> Where can I find additional information on using NSNetService and sending 
>> data to a printer? I am able to find a printer using NSNetService, but 
>> unable to figure out how to send data.
> 
> Bonjour is only about service discovery. It just tells you a service’s IP 
> address; it doesn’t have anything to do with the connection or protocol.
> 
>> Should I use NSStream, NSSocketPort etc...? I am a bit confused.
> 
> NSNetService does have a convenience method -[getInputStream:outputStream:] 
> that will open a socket to the service’s IP address/port; so NSStream is 
> probably the easiest API to use.
> 
> At that point you’ll need to use whatever data protocol the printer supports. 
> That’s off-topic for this list, and not something I know about; you’ll need 
> to do some research to find out about printing protocols.
> 
> —Jens

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to