Registering Serial Port service easily?
Registering Serial Port service easily?
- Subject: Registering Serial Port service easily?
- From: Anil Madhavapeddy <email@hidden>
- Date: Mon, 6 Jun 2005 17:44:04 +0100
I've been porting Blueproxy (http://anil.recoil.org/projects/
blueproxy.html) to MacOS X to work better with the new Bluetooth APIs.
Is there a convenience function to quickly register a Serial Port
Service anywhere in the SDK? E.g. in FreeBSD, all I need to do is
something like:
bdaddr_t addr;
sdp_sp_profile_t sp;
sp.server_channel = channel;
sdp_register_service(sdp_sess, SDP_SERVICE_CLASS_SERIAL_PORT,
&addr, (void *) &sp, sizeof sp, NULL);
... and the SDP tree is created for me and registered with the SDP
daemon.
In MacOS X, it looks like I need to create a plist file full of magic
strings, as seen in the RFCommServerExample. All a bit verbose ...
is this the only way?
Thanks for any help.
--
Anil Madhavapeddy http://anil.recoil.org
University of Cambridge http://www.cl.cam.ac.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden