I am a newbie and want to develop an application implementing the basic networking protocols like the aloha and csma/ca.The application when started on both the devices should show the transmission of data packets between two ipods and if some other device sends data in the same channel then there should be collision and data loss.
As far as I know, there is no provision in any iOS SDK for writing your own wireless drivers. The wireless chips are simply not programmable or reprogrammable at that level. You'd have a hard time doing it for Mac OS X, and that platform is a lot more open about devices and drivers than iOS is.
This doesn't mean it's completely impossible. The evidence that it
is possible is that jailbreaks sometimes contain code that rewrites the wireless chip's control firmware. However, that code isn't being written by an inexperienced noob. It's being written by someone who is very familiar with the wireless chip in question, and has probably written many different device drivers and network protocols before. And if I had to guess, I would guess that the drivers are written in C or C++, and maybe even some assembly-language.
In any case, there's no way that such an app would be accepted into the App Store. That leaves Ad Hoc distribution and jailbreaking as your remaining distribution methods.
I am in desperate need of help
Please explain.
Have you been assigned this task for your job, and you have no idea how to complete it, or even how to start it?
Are you conducting a feasibility study to see if this is even possible?