Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <465484B4.2070701@access-company.com> References: <464B36D4.80702@access-company.com> <1179666685.10069.250.camel@violet> <4653218D.3090504@access-company.com> <1179854658.9152.37.camel@aeonflux.holtmann.net> <465484B4.2070701@access-company.com> Date: Wed, 23 May 2007 22:32:19 +0200 Message-Id: <1179952339.19944.29.camel@aeonflux.holtmann.net> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Fix for disconnection in new serial service 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 Frederic, > >> What I want to do in my program is : ConnectService, open rfcomm, DisconnectService, than use file descriptor on rfcomm. Close rfcomm after, that should > >> disconnect the bluetooth connection. > > > > that is not the the use case for ConnectService and DisconnectService. > > It is as simple as that. What you want is more like the CreatePort > > methods that create persistent RFCOMM bindings. > > > > Regarding the Serial service API, I am not sure to understand difference between ConnectService and CreatePort. > Is it possible to use port like this : CreatePort, open rfcomm, RemovePort, use file descriptor on rfcomm, than close it (that should disconnect bluetooth) ? the CreatePort is a permanent binding that will be even restored after reboot. The ConnectService is one-time use when you can't use the RFCOMM socket directly or need a TTY. The advantage of ConnectService is that the daemons cleans up after your process exits. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel