Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
GOEP Server structure for GOEP v2.0 and later. More...
#include <goep.h>
Data Fields | |
struct bt_l2cap_server | l2cap |
L2CAP PSM for GOEP v2.0 and later. | |
int(* | accept )(struct bt_conn *conn, struct bt_goep_transport_l2cap_server *server, struct bt_goep **goep) |
Server accept callback. | |
sys_snode_t | node |
GOEP Server structure for GOEP v2.0 and later.
int(* bt_goep_transport_l2cap_server::accept) (struct bt_conn *conn, struct bt_goep_transport_l2cap_server *server, struct bt_goep **goep) |
Server accept callback.
This callback is called whenever a new incoming GOEP connection requires authorization.
conn | The connection that is requesting authorization. |
server | Pointer to the server structure this callback relates to. |
goep | Pointer to received the allocated GOEP object. |
struct bt_l2cap_server bt_goep_transport_l2cap_server::l2cap |
L2CAP PSM for GOEP v2.0 and later.
The bt_goep_transport_l2cap_server::l2cap is used to register a l2cap server.
The bt_l2cap_server::psm needs to be passed with a pre-set psm (not recommended however), Or give a value 0
to make the psm be auto-allocated when bt_goep_transport_l2cap_server_register is called. The bt_l2cap_server::sec_level is used to require minimum security level for l2cap server. The bt_l2cap_server::accept should be not used by GOEP application, and instead the bt_goep_transport_l2cap_server::accept will be used.
sys_snode_t bt_goep_transport_l2cap_server::node |