Re: dealing with async events

2005-03-22 Thread John Coppens
On Tue, 22 Mar 2005 22:05:50 +0100 Andreas Bachmann <[EMAIL PROTECTED]> wrote: > hi! > > I'm developing a gtk+ based equivalent to 'netstat' and 'sockstat'. > (http://bachi.te-clan.ch/tcpview.png) > Andreas, Though I don't want to discourage the use of threads, did you check g_io_channels? Th

dealing with async events

2005-03-22 Thread Andreas Bachmann
hi! I'm developing a gtk+ based equivalent to 'netstat' and 'sockstat'. (http://bachi.te-clan.ch/tcpview.png) my first app was a single thread (gtk_main) with g_timeout_add every 1 sec to update my treeview. disadvantage: backend roundtrip is too long. (http://bachi.te-clan.ch/TCPView/timeout.pn