Hello,
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.
This is easy enough to support on the client side, but it seems a bit harder
when implementing a service. The problem is that I can't examine the Body
and End-of-Body headers when a Put is received. OpenOBEX will stream or
package up the body data and pass it on, but there's no way to find out if
it received empty Body or End-of-Body headers, or if it didn't receive them
at all.
Is there a way to get around this? ObexFTP's obexftpd seems to determine
there's a Put-Delete if it receives a final packet that doesn't have a Body
header. It's able to access the Body header because it doesn't enable
streaming, but the implementation I am working on requires streaming. Also,
there's no way to check the End-of-Body header even if streaming is not
enabled.
If this is not currently possible, an idea would be to set some flags when
parsing the incoming headers that indicate if there is something special
about the Body and End-of-Body headers (e.g. if they are missing or empty).
These flags could be retrieved through a method, e.g.
OBEX_ObjectGetPutFlags().
Any suggestions?
thanks,
Bea
-------------------------------------------------------------------------
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