I downloaded code from http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html , and modified to transfer data between two iOS Devices using wifi.