2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 aosp-main 대신 android-latest-release를 사용하는 것이 좋습니다. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
btsock_interface_t 구조체 참조
#include <
bt_sock.h
>
|
|
|
size_t
|
크기
|
|
|
|
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)
|
|
|
bt_sock.h
파일의
49
번 라인에 정의가 있습니다.
|
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)
|
원격 기기의 RFCOMM UUID 채널에 연결합니다. 연결 시 btsock_connect_signal 및 허용될 새 소켓 fd를 읽을 수 있는 소켓 fd를 반환합니다. callingUid는 소켓을 요청하는 애플리케이션의 UID입니다. 트래픽 회계 목적으로 사용됩니다.
bt_sock.h
FILE의
71
행에 정의되어 있습니다.
|
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)
|
RFCOMM UUID 또는 채널을 수신 대기합니다. 원격 기기가 연결되었을 때 btsock_connect_signal을 읽을 수 있는 소켓 fd를 반환합니다. UUID 또는 채널이 제공되지 않으면 채널이 할당되고 bt_sdp의 create_sdp_record(...)에 채널 번호를 제공하여 서비스 레코드를 만들 수 있습니다. callingUid는 소켓을 요청하는 애플리케이션의 UID입니다. 트래픽 회계 목적으로 사용됩니다.
bt_sock.h
파일의
62
번 줄에 정의되어 있습니다.
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
-
hardware/libhardware/include/hardware/
bt_sock.h
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[]]