Zitat von "Luiz Augusto von Dentz" <luiz.de...@gmail.com>: > On Wed, Nov 3, 2010 at 10:38 AM, max ulidtko <ulid...@gmail.com> wrote: >> As far as I can figure out, an obex_t instance which makes a request >> (obex client) should never get into a state with MODE_SRV set. This >> breaks proper dispatching of events and so on. >> >> And so I assume that those MODE_SRV assignments in obex_client.c were >> some kind of mistake. The patch fixes it. [...] > Actually mode has been separated from state since some time, I don't > think this patch even apply upstream anymore. But I agree that > switching to server mode is a bit odd, but maybe there is a reason for > that.
Indeed there is. MODE_SRV is also used as initial value for the mode field. Unless you take that obex_t and register as server with it, the MODE_SRV does nothing (there is no listening FD so nothing comes in this route). MODE_CLI is automatically set once you send a request and everything is set back to initial values once that request ends. Exactly which event is the problem here? HS ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users