Client and Server

  • josef novak

    josef novak - 2006-11-02

    Hi *,
    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.


    • Hendrik Sattler

      Hendrik Sattler - 2007-01-05

      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.

    • Pavel R

      Pavel R - 2008-09-20


      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?


      • Christian W. Zuckschwerdt

        Perhaps obexftp and obexftpd can help?

    • Pavel R

      Pavel R - 2008-09-21

      What is the basic sequence is for a server?

      Is there a simple example of a server?



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks