Rather than being client my program would work as a relay bridge.
--- Post updated at 03:59 PM ---
Here seems to be some source codes for GNU Talk:
GNU Talk Homepage. I was planning to use those as the basis of my program. I need to see how it is possible to redirect messages from talk.