in reply to Non-blocking IPC to and from multiple children
I would also look at doing a threaded solution. An anonymous monk developed this handy little multithreaded Chat server here->ChatServer
Threads are good when you are sharing data both ways.