All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] get remote bt address
Date: Thu, 23 Dec 2004 12:58:29 +0100	[thread overview]
Message-ID: <1103803109.20258.79.camel@pegasus> (raw)
In-Reply-To: <2de4657604122303546f813ecf@mail.gmail.com>

Hi Manjunath,

> I am using l2cap sockets. On the receiving side, i want to find out
> the remote (sender's) bluetooth address. i do not have the dev_id or
> handle of the sender which has already established a connection. I
> want to get it in my c code, not using hcitool con or other means.
> I am trying getpeername, but it doesn't seem to work. Hope you can
> suggest something.

the getpeername() is the right function and it works. If not, then your
code is wrong.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2004-12-23 11:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-23 11:54 [Bluez-users] get remote bt address Manjunath Prabhu
2004-12-23 11:58 ` Marcel Holtmann [this message]
2004-12-23 12:18   ` Manjunath Prabhu
2004-12-23 16:05     ` Jay Summet
2004-12-23 17:19     ` Erwin Authried

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1103803109.20258.79.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.