Re: File Descriptor Input
- From: Shiraz Baig <shiraz_baig yahoo com>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtk-list gnome org
- Subject: Re: File Descriptor Input
- Date: Thu, 27 Mar 2003 19:40:55 -0800 (PST)
--- Paul Davis <paul linuxaudiosystems com> wrote:
First Point:
------------
> that's not what it says. it says:
>
> gint gdk_input_add (gint
> source,
>
> GdkInputCondition condition,
>
> GdkInputFunction function,
> gpointer data);
/**** Ok, I have now revised it as follows ***/
void input_callback( gpointer data,
gint source,
GdkInputCondition condition )
{
gchar *mesg;
mesg =data;
g_print("Got something.\n");
}
main()
.........
gint gdk_input_add( fileno(stdin),
GTK_INPUT_READ,
(GtkInputFunction) input_callback,
gpointer data );
.............
But it still does not invoke that function call. My
purpose is that at least the function be called. Then
I can start thinking of something else.
Second Point:
-------------
> you can't do this. if you don't read the data, then
> your function will
> be called again immediately, because there is still
> data to be read.
I wish, it is called again and again :-)
My problem is that it is not being called at all :-(
Third point:
-----------
> this is completely wrong. i think you need a little
> experience with C programming.
May be I failed to explain myself. I have been doing
programming in c for last 10 years. In fact, recently,
,I have written a multi-threaded, multiplexed (stdin
and socket input), multicast application in
transmission of video image with RTP protocol.
So, I hope, I have adequate experience.
Thanks for bearing with me, and listening to my, may
be foolish questions.
Bye and I shall wait for your answer. At least you are
responding , others are not.
bye
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]