Prev | Current Page 70 | Next

Timothy J. Thompson, C Bala Kumar, and Paul Kline

"Bluetooth Application Programming with the Java APIs Essentials Edition"

e., acting as an SDP server)
??? Connections to server applications
Peer-to-Peer Applications
Although it is important to understand the distinction between a Bluetooth
client application and a Bluetooth server application, it is possible
for the same Bluetooth application to play both the client role and the
server role. It is one of the stated goals of JABWT to support peer-to-peer
applications in which the peer-to-peer application is capable of being
both server and client. For example, it is not likely that a two-person
40 Chapter Three: High-Level Architecture
Bluetooth game would be sold in client and server versions. Instead, the
game software would do both of the following:
??? Initiate attempts to connect to nearby devices that have the same
game (client)
??? Accept connections requested by nearby devices with the same
game (server)
Whereas JABWT tends to describe the client and server techniques separately,
these techniques are not incompatible, and applications can use
them both. Service discovery and service registration are discussed in
more detail in Chapter 7.
3.1.4 Device Properties
Various Bluetooth products need to be con?¬?gured differently depending
on the product and the market. A set of device properties facilitates such
variations and differentiations. JABWT de?¬?nes system properties that
may be retrieved by a call to LocalDevice.


Pages:
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82