• Marcel Holtmann's avatar
    Bluetooth: Add global deferred socket parameter · c4f912e1
    Marcel Holtmann authored
    The L2CAP and RFCOMM applications require support for authorization
    and the ability of rejecting incoming connection requests. The socket
    interface is not really able to support this.
    
    This patch does the ground work for a socket option to defer connection
    setup. Setting this option allows calling of accept() and then the
    first read() will trigger the final connection setup. Calling close()
    would reject the connection.
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    c4f912e1
af_bluetooth.c 9.97 KB