Finding out sender's address

Help
Pavel R
2008-09-22
2013-05-01
  • Pavel R

    Pavel R - 2008-09-22

    Hello!

    I'm using the obexpush in order to receive files from multiple mobile phones.
    I would like to know from which phone i received which file. I want to know the BT address of each phone which sent the file. In order to do that I'm thinking to change the file names and concat to then the sender's BT address.

    However i was unable to find out where i can find this address and how to change the file name in the obexpushd.c code.

    Any help/hint will be welcomed!

     
    • thomasx

      thomasx - 2008-09-23

      Obtain the FD of the OBEX session -> int fd = OBEX_GetFD(handle);
      Obtain the BT-MAC -> getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __len) -> sys/socket.h
      Read the OBEX spec, it explains how to generate OBEX packets.

       

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks