Wrox Programmer Forums
|
BOOK: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad
This is the forum to discuss the Wrox book Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad by Jack Cox, Nathan Jones, John Szumski; ISBN: 978-1-118-36240-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iOS Network Programming: Connecting the Enterprise to the iPhone and iPad section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 5th, 2016, 05:43 AM
Registered User
 
Join Date: Sep 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13: I am at a complete loss. Please HELP!

Hi everyone,

My name is Alex and I am a complete novice at iOS development. Please accept my sincere apologies if my question is completely silly no matter how many times I go through chapter 13 I just cannot figure out the answer.

I am trying to build a simple chatting application where users will be able to publish themselves via NSNetService, discover other users via NSNetServiceBrowser, and connect to other users via NSStream. Say for example that user "A" wants to connect with users "B", "C" and "D". Does user "A" have to create three distinct pairs of input/output streams (i.e. one for each of the users "B", "C" and "D") and if so, how can I keep track of the connected users and their respective streams?

I use the method getInputStream:outputStream: on the publishing side and the method netService:didAcceptConnectionWithInputStream:outp utStream: on the discovering side.

Thanx.


Alex





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 - Last Try it Out jdlferreira BOOK: Beginning ASP.NET 4 : in C# and VB 2 July 16th, 2012 04:45 AM
Chapter 13 Try It! MikersSU BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 11 April 1st, 2012 05:14 AM
Chapter 5 listing is not complete ! daveporter BOOK: Ruby on Rails for Microsoft Developers 1 October 8th, 2009 06:18 PM
Chapter 13 ElMorenito BOOK: Beginning ASP 3.0 0 January 14th, 2005 02:56 PM
The complete struts applicaton in Chapter 16 rna5132 JSP Basics 0 October 12th, 2003 08:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.