Re: DO Chat Example
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