From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: Olivier Le Pogam , BlueZ development In-Reply-To: <000b01c81484$989af5b0$0200a8c0@jester> References: <6656b6540710182155m29cd7441l6dcb9a7d722d5417@mail.gmail.com> <47189691.2000504@cilnu.com> <6656b6540710210008v5cc459dv6692a5e8ff888187@mail.gmail.com> <471B5E66.1030601@cilnu.com> <000b01c81484$989af5b0$0200a8c0@jester> Date: Mon, 22 Oct 2007 11:22:26 +0200 Message-Id: <1193044946.6184.157.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Blocking connect(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) => EINPROGRESS Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Oli, > I am trying to perform RFCOMM connection to a mobile phone thanks to a > blocking "connect(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)" (Blocking is > the only way for me to get a "Connection Refused" return status !), and if > the phone is still asking for the authorization when the connect times out, > the connect and leaves with a EINPROGRESS status. I have no idea what you are trying to achieve here. Anyway, the RFCOMM socket behaves like every other TCP socket. So in the non-blocking case apply the same stuff you use when programming TCP. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel