Am Mittwoch 15 November 2006 07:56 schrieb Bea Lam:
> I'm writing some code with OpenOBEX that is required to support the special
> "Put-Delete" and "Create-Empty" commands that are specified through Put
> operations. The specs say that a Put-Delete is where a Put is received
> without any Body and End-of-Body headers, and a Create-Empty is where a Put
> is received with an empty End-of-Body header.

That is written (for reference: chapter 3.3.3.6) but I hope that they meant 
that a bit different (else it would be complete non-sense):
The key word, here, is "Similarly". The Create-Empty shall be used if no body 
header was send and the end-of-body header is empty.

If an empty end-of-body headers always indicates an empty file despite 
previously sent body headers, is one supposed to discard the already-sent 
data? That doesn't sound logical and is the opposite of the suggestion in 
chapter 3.3.3.5 (second paragraph).

That makes the Create-Empty pretty easy to implement on both client and server 
without any(?) changes (don't check the length, though).

As for Put-Delete, it may be possible to realize that as event 
OBEX_EV_BODYMISSING or command OBEX_CMD_DELETE.

HS

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to