Re: Killing thread
- From: Tim Müller <zen18864 zen co uk>
- To: gtk-app-devel-list gnome org, RAT <rat mujmail cz>
- Cc:
- Subject: Re: Killing thread
- Date: Sun, 21 Nov 2004 15:02:26 +0000
On Sunday 21 November 2004 13:08, RAT wrote:
I have this problem. I've got thread (server which waits for incomming
data) and I would like to kill this thread but I don't know how :(
This thread function looks like
(snip)
and there's a while loop inside the server_start function. How can I
kill this thread and any suggestion for doing this better?
this might not be the answer you're looking for, but most likely you don't
need a thread at all to listen for incoming connections on a socket, or to do
network stuff "in the background".
I'd recommend having a look at the GNet library API:
http://www.gnetlibrary.org/docs/
(e.g. GServer for a TCP server, and GUdpSocket for UDP).
There's also the GNetwork library (don't have URL handy, google should find
it), which does similar things with an GObject based API.
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]