btsock_interface_t Riferimento Struct
#include < bt_sock.h >
Campi dati | |
size_t | dimensione |
bt_status_t (* | Listen ) ( btsock_type_t type, const char * service_name, const uint8_t * service_uuid, int channel, int * sock_fd, int flags, int callingUid) |
bt_status_t (* | connect ) (const bt_bdaddr_t * bd_addr, btsock_type_t type, const uint8_t * uuid, int channel, int * sock_fd, int flags, int callingUid) |
Descrizione dettagliata
Documentazione sul campo
bt_status_t (* connect) (const bt_bdaddr_t * bd_addr, btsock_type_t type, const uint8_t * uuid, int channel, int * sock_fd, int flags, int callingUid) |
Connetti a un canale UUID RFCOMM del dispositivo remoto, restituisce il socket fd da cui è possibile leggere btsock_connect_signal e un nuovo socket fd da accettare quando connesso. Il callingUid è l'UID dell'applicazione che richiede il socket. Viene utilizzato per scopi di contabilità del traffico.
bt_status_t (* listen) ( btsock_type_t type, const char * service_name, const uint8_t * service_uuid, int channel, int * sock_fd, int flags, int callingUid) |
Ascolta un UUID RFCOMM o un canale. Restituisce il socket fd da cui btsock_connect_signal può essere letto quando è connesso un dispositivo remoto. Se non viene fornito né un UUID né un canale, verrà assegnato un canale e sarà possibile creare un record di servizio fornendo il numero del canale a create_sdp_record (...) in bt_sdp. Il callingUid è l'UID dell'applicazione che richiede il socket. Viene utilizzato per scopi di contabilità del traffico.
size_t dimensione |
La documentazione per questa struttura è stata generata dal seguente file:
- hardware / libhardware / include / hardware / bt_sock.h