btashton commented on issue #1639:
URL: 
https://github.com/apache/incubator-nuttx/issues/1639#issuecomment-682167662


   
   > All sockets support connection, even connection-less sockets like UDP. 
When you connect a UDP socket it just remembers the peer address so that you 
can use recv() instead of recvfrom().
   
   with BTPROTO_HCI there is no concept of `accept`, `connect`, `listen`, or   
you can only issue a `bind`  This is because this socket is for controlling 
local hardware there is no remote.
   
   You can see that Linux also does this here:
   https://elixir.bootlin.com/linux/latest/source/net/bluetooth/hci_sock.c#L1999
   
   I think I can come up with something that will work within the existing 
network infrastructure with the slight addition of the protocol attached to the 
socket to help with some of the upper layers of the stack.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to