View Full Version : bonjour
chhoda
Jul 2, 2009, 07:55 AM
I was going through WiTap example to see the possibility of my developing a p2p application. I saw it is using TCPServer and then using bonjour to do something
My question is, is bonjour essential ? cant we do socket communications directly ?
--CH
Troglodyte
Jul 2, 2009, 08:53 AM
Bonjour isn't a replacement for sockets. It's simply a way of publishing and detecting services.
chhoda
Jul 8, 2009, 07:40 AM
yeah understood, even though i could not understand the protocol fully, i could start working with it ans will learn as i progress.
One problem is, I have only one mac, how can I test it ? if i intend to test a multiplayer application?
--CH
Troglodyte
Jul 8, 2009, 10:42 AM
With difficulty - you need two devices.
ghayenga
Jul 8, 2009, 11:25 AM
With difficulty - you need two devices.
Not so, with Bonjour you can use one device and the simulator on your computer. I've done it.
Troglodyte
Jul 8, 2009, 04:45 PM
I could be pedantic and point out you do still have two devices in that case - a mac and an iPhone/iTouch.
chhoda
Jul 9, 2009, 01:57 AM
thanks, got it.
another question is, can two players create session over internet ? like i hv tested in local network, but i wanna see if i run my app here in my office network and somebody else run app at home who is connected internet through his own internet connection [different than my office connection], still we can create a session and communicatethrough bonjour ?
regards
Jagat
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.