See : shrek-donkey chat and it's Gtk2 tutorial
Here is the only example of a client server I have, where the client uses Gtk2. I didn't write this, but it's very good and basic. As far as a chat server goes, programming Gtk2 is similar to Tk,
except that instead of using a fileevent to watch the socket, you use a Gtk2::Helper ( read "perldoc Gtk2::Helper") Also, ask on the Perl/Gtk2 maillist where more Perl/Gtk2 programmers read daily.
| [reply] [d/l] [select] |
I have been looking around and have found that POE maybe the way to go. Right now I am just interested in getting a chat server/client program started. I figure that if I can get that going I can then build Gtk2 around it. I have found a POE chat server taken from POE Cookbook but they dont have a client. I could probably figure out how they work if only I had an example of a client that was built using POE. Thats where I ask perlmonks for their knowledge.
| [reply] |
I might throw this tidbit in for you to consider: POE is an event loop system, as is Gtk2. So you are going to have to work out a way to let the 2 distinct event loops to work concurrently. Usually a timer run in your master loop, can do a 1-loop-update in the slave loop. Also, I havn't looked at POE lately, but it used to have a way to integrate Tk into it( look in the cookbook ), so you may be able to do the same with Gtk2( or ask a POE expert ).
| [reply] |