Re: Socket Programming: How to terminate a thread "listening" for UDP packets?
- From: "Alex Fraser" <me@xxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 19:47:13 -0000
"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:[snip]
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:
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
.
- References:
- Socket Programming: How to terminate a thread "listening" for UDP packets?
- From: Lars Uffmann
- Re: Socket Programming: How to terminate a thread "listening" for UDP packets?
- From: David Schwartz
- Socket Programming: How to terminate a thread "listening" for UDP packets?
- Prev by Date: Re: standards and constants
- Next by Date: Maximum copy speed on a full duplex ethernet connection?
- Previous by thread: Re: Socket Programming: How to terminate a thread "listening" for UDP packets?
- Next by thread: pthread
- Index(es):
Relevant Pages
|