Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Connect multiple peers on the iPhone Application over WiFi?
    primarykey
    data
    text
    <p>I have an idea for an ios(iPhone) application to which requires connecting to several peers. I am basing my code on the <a href="http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007321" rel="nofollow">WiTab</a> (SampleCode-developer.apple.com) example.</p> <p>When my application started each peer creating separate Socket(CFSocket) and publishing through NSNetService Class.In particular instance NSNetServiceBrowser class find available peers. And display their name in TableView.When i select row in the table view the corresponding peer address resolved, a connection established and sending-receiving data was successfully.</p> <p>But my intention is ,I want to select multiple row in the tableView (multiple peer). and resolved selected peers address. For that I stored selected peers information to the NSMutableArray. When i click(touch) send button , I want to resolve Selected Device address and send data to selected peers. For that i did this code </p> <pre><code> for(int k=0;k&lt;[selectedService count];k++) { self.currentResolve = [self.selectedService objectAtIndex:k]; self.currentResolve = [self.selectedSer objectAtIndex:k]; [self.currentResolve setDelegate:self]; [self.currentResolve resolveWithTimeout:60]; } </code></pre> <p>But it will resolved only one device(self.selectedService objectAtIndex:0).So how can i resolved multiple peers Address/ how to established connection for multiple device. so my doubts are:-</p> <ol> <li>Is it possible to connect more than one device simultaneously over WiFi?</li> <li>If yes,What is the maximum number of device that can be connected in same pattern?</li> <li>Which type of CFSocket is useful for multiple Connection(TCP/UDP)?</li> <li>Is it required to create multiple CFSocket in each peer?</li> <li>If Yes,how? their is any documents available ?</li> <li>Is it required to established session?</li> <li>How to resolve address for mutple device? </li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload