Re: gdk_input_add
- From: Darin Fisher <dfisher jagger me berkeley edu>
- To: Meghal Harish Varia <varia ecf utoronto ca>
- Cc: gtk-list gnome org
- Subject: Re: gdk_input_add
- Date: Tue, 31 Oct 2000 19:21:45 -0800
Meghal,
Just another question... just to be sure... you are calling
gtk_main, right?
The thing is, this is supposed to work... it has worked for me.
Could you post a small sample program that also exhibits the
behavior. I think it's too hard to tell otherwise.
Darin
Meghal Harish Varia wrote:
I am using the gdk_input_add() on the client side.
Also on the client side, I call
connect(sd,(struct sockaddr *)&server,sizeof(server));
I know that the connection has been made, and also that the server is
sending data back because if I use a separate thread to read data off of
the socket, this seems to work.
The problem with using a separate thread involves issues with
reading/writing globals, so I really need to get this gdk_input_add()
working.
Thanks,
Meghal
On Tue, 31 Oct 2000, Darin Fisher wrote:
How are you establishing the socket connection?
Darin
Meghal Harish Varia wrote:
Hello,
I use gdk_input_add in my program as follows:
{
sd=socket(AF_INET,SOCK_STREAM,0);
/* I check if a valid socket is returnet */
gdk_input_add(sd, GDK_INPUT_READ,incoming_message,NULL);
}
and then i declare:
static void
incoming_message (gpointer data, gint source, GdkInputCondition cond)
{
}
It compiles fine, and the gdk_input_add line seems to be executed,
However, incoming_message is never called.. why??
Thanks,
Meghal
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]