Re: [Bluez-users] ACL connection handle

Brad Midgley
2008-03-28T03:05:24Z

Marcel

As a straw man for the sco routing, would the socket option look
anything like this? I'm assuming that the driver would report a socket
connect failure if you specify a route that the driver can't do.

--- sco.h.orig 2007-12-24 10:01:18.000000000 -0700
+++ sco.h 2008-03-27 20:57:44.000000000 -0600
@@ -45,8 +45,12 @@

/* set/get sockopt defines */
#define SCO_OPTIONS 0x01
+#define SCO_ANYROUTE 0x00
+#define SCO_HCIROUTE 0x01
+#define SCO_PCMROUTE 0x02
struct sco_options {
uint16_t mtu;
+ uint8_t route;
};

#define SCO_CONNINFO 0x02