On Apr 16, 2014, at 6:14 AM, Bart Arribe <[email protected]> wrote:

> 1. I'm thinking to make one device as a master and, if possible, take the 
> role of the sync gateway. 

Sure, you'll just need the Listener enabled on that device. (On iOS that's in a 
separate framework; not sure about Android.)
Note that this doesn't have the channel or account features of the real Sync 
Gateway.

> If I'm using the architecture with one master device as a star, do my devices 
> need to know only the IP address of my master device? Or the master device 
> need as well the IP address of the other remote devices in order to replicate 
> any change on the database?


Only the master's IP address needs to be known; the master doesn't need to know 
who the other clients are. The other devices can run push and pull replications 
with it.

> 3. Any clues why is acting like that and how to do it properly?

I don't know enough about CBL on Android or JavaScript to be able to answer. 
Hopefully Traun and/or JChris can help.

> 3. Using phonegap, if i want to discover the other peers, how would you do 
> that? 
> I was thinking to make a plugin doing that in native language on Android and 
> iOS, using for instance Bonjour service.


Yes, I think you'll need native code. On iOS this is easily done using Bonjour 
(NSNetService); in fact the CBLListener already supports advertising itself as 
a service, so you just need some code to browse services on the client devices. 
I don't know what the Android equivalent is.

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/E1C36834-F6A2-4CF9-918B-13A6584541F4%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to