ANN: Chatty sample app

15 views
Skip to first unread message

Jens Alfke

unread,
May 24, 2009, 5:49:32 PM5/24/09
to BLIP Protocol
Chatty is an iPhone sample app by Peter Bakhyryev that demonstrates
how to create a simple peer-to-peer chat room using Bonjour and TCP
networking. The original app uses custom networking classes that are
somewhat similar to what MYNetwork does; so I've created a forked
version of the app that actually uses MYNetwork (including BLIP)
instead.

http://bitbucket.org/snej/chatty

—Jens

dshanley

unread,
Jun 10, 2009, 7:55:35 PM6/10/09
to BLIP Protocol
Jens,

Thanks for the sample code integrating MYNetwork with Chatty. Trying
to compile, though, I seem to be missing:

initToBonjourService

for a BLIPConnection. This is used in the RemoteRoom class, line 53:

connection = [[BLIPConnection alloc] initToBonjourService:service]

IPAddress also seems to be using a class method
(addressWithHostname:port:) that isn't in the head of MYNetwork. Is
there a different fork I should be using?

Thanks again,
Dave
>  smime.p7s
> 2KViewDownload

Jens Alfke

unread,
Jun 10, 2009, 11:55:25 PM6/10/09
to dshanley, BLIP Protocol

On Jun 10, 2009, at 4:55 PM, dshanley wrote:

> Thanks for the sample code integrating MYNetwork with Chatty. Trying
> to compile, though, I seem to be missing:
>
> initToBonjourService
>
> for a BLIPConnection. This is used in the RemoteRoom class, line 53:

Hm. That should compile; it's declared in TCPConnection, the
superclass of BLIPConnection:
http://bitbucket.org/snej/mynetwork/src/tip/TCP/TCPConnection.h
see line 52.

> IPAddress also seems to be using a class method
> (addressWithHostname:port:) that isn't in the head of MYNetwork. Is
> there a different fork I should be using?

That's there too:
http://bitbucket.org/snej/mynetwork/src/tip/IPAddress.h
line 32.

What URL are you pulling or downloading MYNetwork from?

—Jens

Dave Shanley

unread,
Jun 11, 2009, 3:29:34 AM6/11/09
to Jens Alfke, BLIP Protocol
Clearly, I'm not using the incorrect URL:


Grabbing the hg root that you referenced seems to be better.  I'm still getting some compile warnings:

/MYNetwork/BLIP/BLIPDispatcher.m:93: error: 'for' loop initial declaration used outside C99 mode


when trying to compile MYNetwork separately from Chatty.  

I'll modify the build settings and go from there.

Dave

Dave Shanley // 503.896.7998 (mobile) // dsha...@nixwire.com

Dave Shanley

unread,
Jun 11, 2009, 3:30:42 AM6/11/09
to Jens Alfke, BLIP Protocol
Sorry, that should be "i'm using the incorrect url".

Too many drinks tonight after wwdc!

Dave Shanley // dsha...@nixwire.com

Jens Alfke

unread,
Jun 11, 2009, 11:53:31 AM6/11/09
to Dave Shanley, BLIP Protocol

On Jun 11, 2009, at 12:29 AM, Dave Shanley wrote:

Grabbing the hg root that you referenced seems to be better.  I'm still getting some compile warnings:

/MYNetwork/BLIP/BLIPDispatcher.m:93: error: 'for' loop initial declaration used outside C99 mode

when trying to compile MYNetwork separately from Chatty.  

(Already replied directly, but for the benefit of the list archives:)

Make sure the Language build setting is set to GNU99 in the Project info panel. (It's set that way in my copy of the project; I don't know why it would be different in the one you checked out...)

—Jens

Reply all
Reply to author
Forward
0 new messages