Re: Socket Programming: How to terminate a thread "listening" for UDP packets?



"David Schwartz" <davids@xxxxxxxxxxxxx> wrote in message
news:c09a4fce-5263-4e4d-b15b-71320ceae3c4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jan 16, 7:44 am, Lars Uffmann <a...@xxxxxxxxxxxxxx> wrote:
What's the "natural" approach to "defuse" a function that is listening
for incoming packets?

There are several ways, some of which naturally fit your situation and
some of which don't:
[snip]
2) Send the thread a signal to make it abort its operation. I do not
recommend this approach.

Out of curiousity, why not? And is the disrecommendation general or
particular to this case?

Alex


.



Relevant Pages

  • Re: Recommand Best inventory software
    ... can fit ... It's called Project Management. ... But as a consultant, before I recommend something to a customer, I first have to understand the customer's needs and how he wants to use the software. ...
    (comp.lang.php)
  • Re: Dressmaker - Liskeard area
    ... I usually work on knitwear but I also do ... dressmaking .If you would like to discuss it further please E mail me on ... > Could anyone please recommend a dressmaker in the Liskeard area of ... I am fed up not being able to buy clothes to fit and don't feel ...
    (uk.rec.crafts.sewing)
  • Re: What printer (less than 44 cm wide) ?
    ... Most of the stuff on the market seems to be wider than 44 cm.....does ... Well...I don't know what to recommend, but I don't think I'd recommend ... should fit in the area you have available. ... for color laser printers. ...
    (comp.periphs.printers)
  • Re: What printer (less than 44 cm wide) ?
    ... Most of the stuff on the market seems to be wider than 44 cm.....does ... Well...I don't know what to recommend, but I don't think I'd recommend ... should fit in the area you have available. ... for color laser printers. ...
    (comp.periphs.printers)
  • Re: Eyewear recommendations?
    ... > What do you guys recommend for sunglasses? ... > wrap-arounds at LL Bean many years ago that were extra wide or extra large ... > and they fit my head really well. ...
    (rec.motorcycles.harley)