Method Summary |
|
public ServiceConnectionData | connectToService(ServiceConnectionData client) Retrieves emulation (TCP) connection URL for connecting to the
service represented by given JSR 82 client connection string. |
public static EmulationServer | getInstance() Retrns the only instance if the server. |
public static synchronized void | launch() Launches the server if not yet running. |
public static void | main(String[] args) Launches the server in a standalone manner. |
public synchronized byte[] | registerDevice(DeviceState deviceState) Registers new device in the ether.
Parameters: deviceState - state of device that defines its current discoverablemode and class of device Bluetooth addres for the registered device that identifies it in the emulated ether. |
public ServiceKey | registerService(ServiceConnectionData service, byte[] btaddr) Registers a service in Bluetooth ether, i.e. |
public void | run() The Runnable interface implementation. |
public InquiryResults | runInquiry(int discoverable, byte[] btaddr) Performs inquiry (devices discovery).
Parameters: discoverable - discoverable mode to search devices with Parameters: btaddr - Bluetooth address of device that performs inquiry - itshould not discover itself. |
public synchronized void | unregisterDevice(byte[] btaddr) Unregisters device from the emulated ether. |
public void | unregisterService(ServiceKey key) Stops advertising the service represented by given record. |