developing application over L2CAP-help needed
Hi all,
I am developing some application layer protocols over
l2cap.
I thought to use Bluez stack as it provides socket
layer interface... Now my question is...
Suppose application wants to establish the l2cap
connection with other bt device using App_Connect_Req
primitive,actually I should create the l2cap socket
using socket() and should call connect() ....but at
the other end application wants to get the l2cap
connect indication event(App_Connect_ind)when the
L2CAP_CONN_REQ event is received at the other end
...so how to give this event to application at the
other end,....which type of socket i should use..
SOCK_RAW or SOCK_SEQPACKET at the sending end as well
as at the listening end....
I heard that we can use raw sockets only for
signalling channel,
actually my aim is to establish the l2cap connection
and then send data on the same connection,then i have
to disconnect the l2cap connection from application
layer..and other end application should know all these
incoming events. so can anybody tell me how to do this
all....
|