[Mono-bugs] [Bug 655153] Add support for Bluetooth sockets
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 25 04:38:31 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=655153
https://bugzilla.novell.com/show_bug.cgi?id=655153#c1
--- Comment #1 from Andy Hume <andyhume32 at yahoo.co.uk> 2010-11-25 09:38:30 UTC ---
Created an attachment (id=402147)
--> (http://bugzilla.novell.com/attachment.cgi?id=402147)
Tester exe assembly
Attached here is a wee test program. It creates a Bluetooth socket and sees if
that succeed then it prompts to make client and server connections.
We've implemented support in our open-source library for using the support:
client, server, SDP, radios, discovery. See
http://32feetnetdev.wordpress.com/2010/11/24/bluez-support/
The test program uses System.Net.Sockets.Socket directly whereas the library
wraps Socket to provide support on various stack software. I'll attach the
tester source later.
* Examples
** No socket-io.c support:
[[
andy at linux5:~> /usr/bin/mono --debug 32feetBtTester.exe
System.Net.Sockets.AddressFamily has unknown value 0x20
Unhandled Exception: System.Net.Sockets.SocketException: An address
incompatible with the requested protocol was used
at System.Net.Sockets.Socket..ctor (AddressFamily family, SocketType type,
ProtocolType proto) [0x0005e] in
/usr/src/packages/BUILD/mono-2.8/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:212
at TtfBtTester.Program.CreateSocket () [0x00000] in <filename unknown>:0
at TtfBtTester.Program.Main (System.String[] args) [0x00000] in <filename
unknown>:0
andy at linux5:~>
]]
** Server on Linux, Client on Win32:
[[
rupert at linux:~> /usr/local/bin/mono --debug 32feetBtTester.exe
Test Client or Server (c or s)> s
Optional local Bluetooth ServiceClassId (not used on BlueZ)
Full UUID, or UUID16 in hex, e.g. 1105 for OBEX Push>
Optional local RFCOMM port> 30
Listened successfully. :-)
On endpoint: 000000000000:30
Waiting for connection... Ctrl+C/etc to abort.
Connected successfully. :-)
On local endpoint: 008098244CA4:30
On remote endpoint: 001583B41BFA:30
Exit
rupert at linux:~>
--------
D:\Temp>mono --debug 32feetBtTester.exe
Test Client or Server (c or s)> c
Enter remote Bluetooth address> 008098244ca4
Optional remote Bluetooth ServiceClassId (not used on BlueZ)
Full UUID, or UUID16 in hex, e.g. 1105 for OBEX Push>
Optional remote RFCOMM port> 30
Connected successfully. :-)
On local endpoint: 001583B41BFA:0
On remote endpoint: 008098244CA4:30
Exit
D:\Temp>
]]
** Server on Win32, Client on Linux:
[[
D:\Temp>Win32_Debug_eglib\bin\mono --debug 32feetBtTester.exe
Test Client or Server (c or s)> s
Optional local Bluetooth ServiceClassId (not used on BlueZ)
Full UUID, or UUID16 in hex, e.g. 1105 for OBEX Push>
Optional local RFCOMM port> 29
Listened successfully. :-)
On endpoint: 001583B41BFA:29
Waiting for connection... Ctrl+C/etc to abort.
Connected successfully. :-)
On local endpoint: 001583B41BFA:0
On remote endpoint: 008098244CA4:29
Exit
--------
rupert at linux:~> /usr/local/bin/mono --debug 32feetBtTester.exe
Test Client or Server (c or s)> c
Enter remote Bluetooth address> 001583B41BFA
Optional remote Bluetooth ServiceClassId (not used on BlueZ)
Full UUID, or UUID16 in hex, e.g. 1105 for OBEX Push>
Optional remote RFCOMM port> 29
Connected successfully. :-)
On local endpoint: 008098244CA4:29
On remote endpoint: 001583B41BFA:29
Exit
rupert at linux:~>
]]
--
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