Hi,

On Fri, Oct 8, 2010 at 7:38 PM, Hendrik Sattler <[email protected]> wrote:
> Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz:
>> From: Luiz Augusto von Dentz <[email protected]>
>>
>> This make possible to cancel pending operation with a proper error
>> instead of always respond using OBEX_RSP_UNAUTHORIZED.
>
> Changing obex_cancelrequest() is not the right aproach for that.
> OBEX_CMD_ABORT is the only way to tell the other side that you want to cancel
> a request. What other command do you want to use?

Not really, first we cannot respond with abort because it is a
response not a request, second OBEX_ObjectSetRsp doesn't work either
because we normally are in the middle of stream transfer. It could be
made by setting  OBEX_ObjectSetRsp and than cancel request so that we
mark the object->abort which are latter check on send, but if it is a
general error which is not related to the object itself I find it odd
to have to set the response via OBEX_ObjectSetRsp which takes the
object pointer, that why I opt for canceling it directly via cancel so
we can completely ignore whatever response is set on object, actually
if we decide not to use nice as response on server than
OBEX_CancelRequest is useless for servers which should always use
OBEX_ObjectSetRsp + OBEX_ResumeRequest instead (we still have to fix
it tough).

-- 
Luiz Augusto von Dentz
Computer Engineer

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to