Me and my programming team just put together a nice chat program..Only been workin on it about a week or so..Check it out on http://chrono.inforeading.com or http://darkpenguin.sytes.net
It comes with a server and client download for linux. compiled with gcc compiler..
if anyone is lookin for a code sample.. you can look at it.