|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
FTP server RFCOMM registration structure. More...
#include <zephyr/bluetooth/classic/ftp.h>
Data Fields | |
| struct bt_goep_transport_rfcomm_server | server |
| Underlying GOEP RFCOMM server. | |
| int(* | accept )(struct bt_conn *conn, struct bt_ftp_server_rfcomm *ftp_server_rfcomm, struct bt_ftp_server **ftp_server) |
| Accept connection callback. | |
FTP server RFCOMM registration structure.
| int(* bt_ftp_server_rfcomm::accept) (struct bt_conn *conn, struct bt_ftp_server_rfcomm *ftp_server_rfcomm, struct bt_ftp_server **ftp_server) |
Accept connection callback.
Called for each new incoming RFCOMM connection. The application must return through ftp_server an FTP Server instance that has been registered through bt_ftp_server_register() before accept() returns; this is checked with an assertion. An instance stays registered after its transport has disconnected and can be returned again for a later connection: do not zero it or call bt_ftp_server_register() for it again (that returns -EALREADY). The returned instance must not be in use (its transport has not fully disconnected); this is checked with an assertion.
| conn | Bluetooth connection object. |
| ftp_server_rfcomm | The server registration structure. |
| ftp_server | Output pointer for the allocated server instance. |
| struct bt_goep_transport_rfcomm_server bt_ftp_server_rfcomm::server |
Underlying GOEP RFCOMM server.