gdk_input_add loops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I wanted to use gdk_input_add to check when data is available on my socket for reading. What i do is, i accept a connection and use gdk_input_add to monitor the socket returned by accept(). Now somehow gdk_input_add keeps on calling the callback function even after i have read the data once. Why is this happening. I want my callback to be called only when something new is passed by the client side of my program.  But somehow the functions keeps getting called and it keeps reading the same data again and again.

Kindly help me solve this problem

Regards

Devvrat
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux