Well basically , after further research , I found a pretty helpful resource online , which explains sockets , messaging and bonjour all in on great tutorial.
This example consists of 3 classes excluding the User Interface (UIViewController).
Message - that handles the message format
AsyncSocket - Wrapper class for network or serial port connections using BSD sockets as far as I can understand .
Message Broker - incorporating the above two classes and using them to put it all together
This tutorial can be found at :
HTML Code:
http://www.macresearch.org/cocoa-scientists-part-xxix-message
Thanx to Drew McCormack for this awesome tutorial!
Highly recommended for anyone who wants to use network connections to other device.