Hi, Marcel -----Original Message----- From: linux-bluetooth-ow...@vger.kernel.org [mailto:linux-bluetooth-ow...@vger.kernel.org] On Behalf Of Li, Nami Sent: 2011年6月21日 13:23 To: openobex-users@lists.sourceforge.net; linux-blueto...@vger.kernel.org Cc: Liu, Haijun Subject: [PATCH v2 openobex 3/3] Modify code to read entire packet when fd transport format is SEQPACKET.
--- lib/fdobex.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..46a0796 100644 --- a/lib/fdobex.c +++ b/lib/fdobex.c @@ -79,6 +79,9 @@ static int fdobex_read(obex_t *self, void *buf, int buflen) { struct obex_transport *trans = &self->trans; + if(trans->data.fd.fmt == FDOBEX_MT_SEQPACKET) + buflen = self->mtu_rx; + #ifdef _WIN32 return _read(trans->fd, buf, buflen); #else -- 1.7.1 How do you think of the 3 patches? Would you give me some advice? Regards, Nami ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users