From: Jean Tourrilhes <jt@bo...> - 2002-11-27 21:39:17
Alain Paschoud wrote :
> OK, I think know where the problem is : I get some code from
> application example "obex_test.c" which passes "(void*) 1" as second
> argument of function "OBEX_ServerRegister". Perhaps an example
> which gives really a "struct sockaddr" could be useful.
Could you point out where the error is ?
I've just checked and the latest version of "obex_test.c"
(1.0.0-pre5), and the code is correct. It uses properly
"InOBEX_ServerRegister(handle)", which in turn calls
"inobex_prepare_listen(self)". "OBEX_ServerRegister()" is called only
in the case of cable OBEX.
So, I believe that you didn't cut'n'paste properly from the
example or used an obsolete version of "obex_test.c".
Note that if you want to userstand how to use the advanced
features of OpenObex, such as using "OBEX_ServerRegister()" with
"struct sockaddr", please look in the e-Squirt code (see my previous