Can anyone steer or provide any hady tips for creating a chat software via networking protocals such as TCP/IP.

My friend and I want to create a software such as AIM and ICQ.
Any help would be greatly appreciated.

Daniel Christie