Return-Path: Subject: Re: [Bluez-users] get remote bt address From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <2de4657604122303546f813ecf@mail.gmail.com> References: <2de4657604122303546f813ecf@mail.gmail.com> Content-Type: text/plain Message-Id: <1103803109.20258.79.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu, 23 Dec 2004 12:58:29 +0100 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