Re: threads and Sockets
- From: G Hasse <gh raditex se>
- To: Oliver Buecker <o buecker fz-juelich de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: threads and Sockets
- Date: Wed, 25 Apr 2001 22:19:38 +0200 (CEST)
On Wed, 25 Apr 2001, Oliver Buecker wrote:
Hello alltogether,
- is it possible that someone kann give me an example how
make threads with gtk????
Basicaly you don't want to do threads in a UI application.
If you want to do many things "at the same time" do them
in separate servers and create sockets between them.
Then you listen on the socket with
gdk_input_add( s, GDK_INPUT_READ, GTK_SIGNAL_FUNC(file_function),
&cmdinfo );
To read from the socket when data is available.
- my second problem is, I have an Client-Server-Programm.
The Server is written in JAVA and the client in C (with gtk)
What do I have to send on the socket of the client that the
gdk_input_add (socket, GDK_INPUT_READ,
input_callback,
NULL);
is aktivated ???
Some datata???
I will send you a separate demo program...
Göran Hasse
----------------------------------------------------------------
Göran Hasse email: gh raditex se Tel: +46 8 694 92 70
Raditex AB http://www.raditex.se Fax: +46 8 442 05 91
Sickla Alle 7, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]