Using GSocket in a GTK application



Hi all,

I'm using GSocket in a GTK application in non-blocking mode.

Once the connection is done, I'm creating a source for the main event loop:
        my_source = g_socket_create_source(my_socket, my_events, NULL);

How do we specify a callback? Should I use g_source_set_callback ()?
The callback would handle the input side from the host to my application.

Thanks,

JP




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