| java.lang.Object example.bluetooth.demo.BTImageServer
BTImageServer | final class BTImageServer implements Runnable(Code) | | Established the BT service, accepts connections
and send the requested image silently.
version: , |
Constructor Summary | |
| BTImageServer(GUIImageServer parent) Constructs the bluetooth server, but it is initialized
in the different thread to "avoid dead lock". |
Method Summary | |
boolean | changeImageInfo(String name, boolean isPublished) Updates the service record with the information
about the published images availability. | void | destroy() Destroy a work with bluetooth - exits the accepting
thread and close notifier. | public void | run() Accepts a new client and send him/her a requested image. |
BTImageServer | BTImageServer(GUIImageServer parent)(Code) | | Constructs the bluetooth server, but it is initialized
in the different thread to "avoid dead lock".
|
changeImageInfo | boolean changeImageInfo(String name, boolean isPublished)(Code) | | Updates the service record with the information
about the published images availability.
This method is invoked after the caller has checked
already that the real action should be done.
true if record was updated successfully, false otherwise. |
destroy | void destroy()(Code) | | Destroy a work with bluetooth - exits the accepting
thread and close notifier.
|
run | public void run()(Code) | | Accepts a new client and send him/her a requested image.
|
|
|