BLIP Connection Delegate

3 views
Skip to first unread message

Stoph

unread,
Mar 29, 2010, 7:54:21 AM3/29/10
to BLIP Protocol
I just discovered BLIP a week or so ago and I've been playing around
trying to get a sample application working on the iPhone. I'm using
the Chatty app as a template. However, I've been getting some errors
involving the -(void)connection:(BLIPConnection*) receivedRequest:
(BLIPRequest*) method in the BLIP Delegate. In the documentation and
in the implementation this method returns void, but in the
BLIPConnection.h file, it is declared to return a BOOL. I was just
wondering if there is a reason for this mismatch and I am doing
something wrong, or if I should just change the implementation to
return a BOOL.

Thanks.

Jens Alfke

unread,
Mar 29, 2010, 10:45:28 AM3/29/10
to Stoph, BLIP Protocol

On Mar 29, 2010, at 4:54 AM, Stoph wrote:

> However, I've been getting some errors
> involving the -(void)connection:(BLIPConnection*) receivedRequest:
> (BLIPRequest*) method in the BLIP Delegate. In the documentation and
> in the implementation this method returns void, but in the
> BLIPConnection.h file, it is declared to return a BOOL. I was just
> wondering if there is a reason for this mismatch

At some point I changed the return value to BOOL (to make it easy for the implementor to reject an unknown request), but I forgot to update Chatty. Sorry! You can just add “return YES;” to the end of the method in Chatty and it should work fine.

(The HTML docs are auto-generated from the headers, but I have to remember to run doxygen and upload the HTML, so in case of conflicts, trust the headers.)

—Jens

Stoph

unread,
Mar 29, 2010, 11:59:47 AM3/29/10
to BLIP Protocol
Thanks. Works great!

-Stoph

Reply all
Reply to author
Forward
0 new messages