• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cancel printer network connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cancel printer network connection


  • Subject: Cancel printer network connection
  • From: Peter C <email@hidden>
  • Date: Wed, 9 Dec 2009 09:40:37 +0800

Hi,

I have a basic LPR code with socket (blocking) for sending printer file directly to printer. The code works fine, now I want to add a cancel feature (cancel button on the GUI) . When data is write to socket, it is block, not able to abort.  How do I go about it ? I read the SocketCancel sample code but it is using non blocking code.

Another question, current the code is in C socket, I would like keep it simple, perhaps in Cocoa, which API should I look at ?

Sorry for such a basic questions, networking is not my expertise.

Peter _______________________________________________
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

  • Follow-Ups:
    • Re: Cancel printer network connection
      • From: Quinn <email@hidden>
  • Prev by Date: Re: [NSURLConnection connection:didReceiveResponse:] and 404
  • Next by Date: Re: Cancel printer network connection
  • Previous by thread: Re: [NSURLConnection connection:didReceiveResponse:] and 404
  • Next by thread: Re: Cancel printer network connection
  • Index(es):
    • Date
    • Thread