I need to write an application that will act as OBEX server and client at the same time. Do you have some suggestions how to share the same handle in the same time? Or is it needed to stop the server whenever some PUT (client action) is to be done an then start the server again? Can I have a look at some working code?
Thanks for any hint.
Simply create two handles. If one handle, you can either be Server of Client, just like with normal sockets.
You can take a look at obexpushd for an example how to handle multiple handles in one program.
I'm dealing with the same problem. I need to write a BT server application, which is going to listen to incoming connections from Mobile phones will send and receive files to/from those phones. I used an example code here to send a file to a phone, but i couldn't create a listening server which will listen to incoming connections and receives a file. I need to understand how to use the obex.c functions to create such an application.
Could you please tell me the flow of such a program?
Perhaps obexftp and obexftpd can help?
What is the basic sequence is for a server?
Is there a simple example of a server?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.