I'm looking into building an IM-type application for iphone using Objective-C . I'd be interested to see any information/advice on how applications like Skype/AIM/MSN work, as well as any technologies/APIs that might be relevant,can any one provides relevant material or links ....thanku in advance
The main protocol used to connect to those services (or even your own) is XMPP (also known as Jabber.
It connects to a Jabber/XMPP server that manages the sessions. XMPP works with Skype, Google Talk, Facebook chat and many more.
I've successfully implemeted a google chat app using this open source XMPP library that fits in very well into iPhone:
http://code.google.com/p/xmppframework/wiki/iPhone
Update
Library now moved to GitHub: github.com/robbiehanson/XMPPFramework as Raspu pointed out
You should be able to rather easily get that up and running. It even comes with a Google talk example.