Re: hci_conn_info definition
"Claudio Takahasi" <[email protected]>
| Newsgroups | gmane.linux.bluez.user |
|---|---|
| Message-ID | <[email protected]> |
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/