[Mono-bugs] [Bug 655153] New: Add support for Bluetooth sockets
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Nov 21 07:57:21 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=655153
https://bugzilla.novell.com/show_bug.cgi?id=655153#c0
Summary: Add support for Bluetooth sockets
Classification: Mono
Product: Mono: Runtime
Version: 2.8.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: io-layer
AssignedTo: lupus at novell.com
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=401441)
--> (http://bugzilla.novell.com/attachment.cgi?id=401441)
Patch
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET
CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729; .NET4.0C; .NET4.0E)
Adding AF_BLUETOOTH/AF_BTH to mono sockets-io.c for Windows and Linux BlueZ.
We handle conversion in both directions and AF/family values and sockaddr.
Unlike sockaddr_in etc, in Bluetooth the two platforms have quite different
naming and sockaddr layouts[1], which doesn't make for simple code. :-(
Tested on Windows and Linux.
The ws2bth.h header content is conditional on XP SP2. I've hacked that in
io-layer.h. On Windows, the header file is missing on cygwin apparently, so
disabled there; I've built only on msvc.
[1] Windows' Address field is 8bytes, Linux has 6bytes; Port: 4byte vs 1byte;
finally Windows also includes a ServiceClassId field (which connect() uses for
automatic SDP lookup there).
Reproducible: Always
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list