2008-03-24 15:14:19

by Addo Del Grossi

[permalink] [raw]
Subject: [Bluez-users] hci_conn_info definition

Hi Guys,

I am using the struct hci_conn_info.
What is the definition the attributes handle and state?
What are the possible values for the attribute state?

struct hci_conn_info {
__u16 handle;
bdaddr_t bdaddr;
__u8 type;
__u8 out;
__u16 state;
__u32 link_mode;
};


Att,
Addo


Attachments:
(No filename) (363.00 B)
(No filename) (760.00 B)
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2008-03-25 20:02:51

by Claudio Takahasi

[permalink] [raw]
Subject: Re: [Bluez-users] hci_conn_info definition

On Mon, Mar 24, 2008 at 12:14 PM, Addo Del Grossi
<[email protected]> wrote:
> Hi Guys,
>
> I am using the struct hci_conn_info.
> What is the definition the attributes handle and state?
> What are the possible values for the attribute state?
>
> struct hci_conn_info {
> __u16 handle;
> bdaddr_t bdaddr;
> __u8 type;
> __u8 out;
> __u16 state;
> __u32 link_mode;
> };
>
>
> Att,
> Addo
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
>


Hi Addo,

Connection handle identifies a logical channel between the host and controller.
Possible state values are:

/* Connection and socket states */
enum {
BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */
BT_OPEN,
BT_BOUND,
BT_LISTEN,
BT_CONNECT,
BT_CONNECT2,
BT_CONFIG,
BT_DISCONN,
BT_CLOSED
};

--
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users