Commit: 7f9ab50d9db54e61aebbd440656ee12f0f90de35
Parent: 18f045b574e3ad96bf9f82261701358d06804b1c
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-02-12 14:50:49
Tree: e9ea7447f81681875c02e144435e2db056cbb7da

android/socket: Make servers list as static array Since there is only small, fixed number of channels to allocate for RFCOMM servers we can store them in static array. This will make lookup for free channel simpler once we add support to assign channel numbers dynamically. At startup, channels reserved for built-in services which have static channel number are marked as reserved so they cannot be assigned for other service.

Diffstat

M android/socket.c | 44 +++++++++++++++++++++++++++++++++++++- - - - - - -

1 files changed, 37 insertions(+), 7 deletions(-)

View Full Diff | Patch