• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DO Chat Example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO Chat Example


  • Subject: Re: DO Chat Example
  • From: "Justin Giboney" <email@hidden>
  • Date: Mon, 28 Jul 2008 12:03:03 -0700 (PDT)
  • Importance: Normal

My original intention was to make the client serve a DO also. The problem
I was having, was how to have the server know who is out there.

Now that I think about it, I could have the Server keep a list of the
registered names of the clients. Would that be a better option?

As far as the inconsistent nature of the program:
I start up the server on one machine. I also set up a client on that
machine and another one. During the process of sending messages back and
forth. Some get sent, and others do not.

Thanks

> On Jul 26, 2008, at 3:38 AM, Justin Giboney wrote:
>> It works so far... well mostly. It isn't very consistent. I don't
>> have a
>> lot of experience with ports, and I was hoping that someone could
>> look at
>> it and see if they can find out why some messages go through while
>> others
>> don't.
>> Here are the projects:
>> www.justingiboney.com/code/DOChat.zip
>> www.justingiboney.com/code/DOChatServer.zip
>
> Might be better if you tell more about in which way your code behaves
> inconsistently, it's easier to pinpoint the problem. :)
>
> Also, passing client-side objects to server might not be a good idea,
> especially if you are keeping them on the server side and intend to
> use them later (immediate callbacks are generally ok in my
> experiences). You might want to make your client a server itself too,
> and let the server talk to the client via another DO.
>
> d.
>
>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >DO Chat Example (From: "Justin Giboney" <email@hidden>)
 >Re: DO Chat Example (From: "Lukhnos D. Liu" <email@hidden>)

  • Prev by Date: Re: Storing values in dictionary with their address as the key
  • Next by Date: Re: [Newbie] Communication between two Views?
  • Previous by thread: Re: DO Chat Example
  • Next by thread: Can't get NSScrollView to resize properly
  • Index(es):
    • Date
    • Thread