title: WiTap Example in iPhone
body: <p>This is the following piece of code from WiTap,</p>
  
  <pre><code>- (void) send:(const uint8_t)message
  {
  if (_outStream &amp;&amp; [_outStream hasSpaceAvailable])
          if([_outStream write:(const uint8_t *)&amp;message maxLength:sizeof(const uint8_t)] == -1)
                  [self _showAlert:@"Failed sending data to peer"];
   }
  
   - (void) activateView:(TapView*)view
  {
      NSLog(@"ACTIVATE TAG: %d", [view tag]); 
      //[self send:[view tag] | 0x80];
      [self send:[view tag]];
   }
  
   - (void) deactivateView:(TapView*)view
   {
      NSLog(@"DEACTIVATE TAG: %d", [view tag]); 
      //[self send:[view tag] &amp; 0x7f];
      [self send:[view tag]];
  
   }
  </code></pre>
  
  <p>Is it possible to send a file using WiTap ?
  How to send NSData using the send method ?</p>
  
  <p>Thanks</p>