P2P connection silly question

2014-03-18 Thread Sandra
Hello, I’m sorry to make this silly question but I’m implementing the listener in my IOS couch base program for a P2P connection, and I don’t know how to call this method from CBLListener: - (BOOL) start: (NSError**)outError; I’m calling it like this: BOOL ok = [_listener start:*error]; But

Re: P2P connection silly question

2014-03-18 Thread Jens Alfke
On Mar 18, 2014, at 11:26 AM, Sandra txms...@gmail.com wrote: I'm calling it like this: BOOL ok = [_listener start:*error]; That * should be an . (This is the standard way errors are returned in Cocoa code; if you're not familiar with it you should read Apple's docs on error handling in

Re: P2P connection silly question

2014-03-18 Thread Sandra
Thank you Jens, yes, I'm learning IOS and couch base, so it's been a challenge. BR, Sandra On Tuesday, March 18, 2014 12:32:27 PM UTC-6, Jens Alfke wrote: On Mar 18, 2014, at 11:26 AM, Sandra txm...@gmail.com javascript: wrote: I’m calling it like this: BOOL ok = [_listener

Re: P2P connection silly question

2014-03-18 Thread Sandra
One more question, where do I get the netService.HostName and port? NSString *peerDB = [NSString stringWithFormat:@http://%@:%@@%@:%d/mydb/;, @naomi,@letmein,netService.hostName,netService.port]; I'm following this example:

Re: P2P connection silly question

2014-03-18 Thread Jens Alfke
On Mar 18, 2014, at 12:59 PM, Sandra txms...@gmail.com wrote: One more question, where do I get the netService.HostName and port? NSString *peerDB = [NSString stringWithFormat:@http://%@:%@@%@:%d/mydb/,@naomi,@letmein,netService.hostName,netService.port]; Here netService is the peer that

Re: P2P connection silly question

2014-03-18 Thread Sandra
Ok, let me study that. Thanks a lot! On Tuesday, March 18, 2014 3:34:57 PM UTC-6, Jens Alfke wrote: On Mar 18, 2014, at 12:59 PM, Sandra txm...@gmail.com javascript: wrote: One more question, where do I get the netService.HostName and port? NSString *peerDB = [NSString