- MTU
아래와 같이 set/getsockeopt() 함수를 이용하면 MTU(Maximum Transmission Unit) 값을 변경할 수 있으며
해당 Local socket에서만 적용이 된다. Server or Client 각각 이를 설정해야 값을 지정할 수 있다.
기본 MTU 값은 672 Bytes이며 최소 48 Bytes에서 최대 65,535 Bytes까지 적용하 수 있다.
|
* 용어 정리
PSM : Protocol Service Multiplexer
L2CAP socket에서 사용가능한 Port는 4097~32,767(0x1001-0x7FFF)까지 홀수 번호이다.
ex) L2CAP Server&Client
1) Server
#include <stdio.h> |
2) Client
#include <string.h> |
춮처 : Bluetooth Essentials
'android > Bluetooth' 카테고리의 다른 글
Ubuntu v12.04.5에서의 BlueZ 개발 환경 (0) | 2014.08.21 |
---|---|
RFCOMM을 이용한 Socket programming Note (0) | 2014.08.20 |
BlueZ API - hci_get_route(), hci_open_dev(), hci_inquiry(), hci_read_remote() (0) | 2014.08.20 |
Kitkat-4.4.2(BlueZ vs Bluedroid) Module 정리 (0) | 2014.07.08 |
[Tip] Bluetooth를 이용하여 파일을 수신할 경우 수신된 파일 위치 (0) | 2013.12.03 |