title: Can WiFi Direct do device to device communication other than file sharing?
body: <p>I am playing with WiFi Direct on a Samsung Galaxy S3 smartphone and a Galaxy tablet. I can share pictures and files between the two using WiFi Direct, either from the Android built-in Share option or some third party apps. But what I am really interested is to do some real time communication programmatically between the two. </p>
  
  <p>Is it true that an Android app can do <em>any</em> kind of normal WiFi
     communication once I have a working WiFi Direct connection? If yes, any  references(ideally some example code) on how to set up a normal connection (say a socket connection)  using WiFi Direct? I want to understand the underlying process like how to set up a WiFi Direct connection from within the app or how to obtain the peer device IP.</p>