| |
|
| java.lang.Object com.sun.midp.jsr82emul.EmulationClient com.sun.midp.jsr82emul.DeviceEmul
Field Summary | |
final static int | CANCEL_INQUIRY Request code for cancelling inquiry. | final static int | INIT_DEVICE Request code for initing devie. | final static int | START_INQUIRY Request code for updating starting inquiry. | final static int | UPDATE_ACCESS Request code for updating access code. | final static int | UPDATE_CLASS Request code for updating service classes. | byte[] | address Bluetooth address. |
Constructor Summary | |
public | DeviceEmul() Constructs an emulation instance and retrieves addres for it from
emulation server. |
CANCEL_INQUIRY | final static int CANCEL_INQUIRY(Code) | | Request code for cancelling inquiry.
|
INIT_DEVICE | final static int INIT_DEVICE(Code) | | Request code for initing devie.
|
START_INQUIRY | final static int START_INQUIRY(Code) | | Request code for updating starting inquiry.
|
UPDATE_ACCESS | final static int UPDATE_ACCESS(Code) | | Request code for updating access code.
|
UPDATE_CLASS | final static int UPDATE_CLASS(Code) | | Request code for updating service classes.
|
address | byte[] address(Code) | | Bluetooth address.
|
DeviceEmul | public DeviceEmul()(Code) | | Constructs an emulation instance and retrieves addres for it from
emulation server.
|
getAddress | public byte[] getAddress()(Code) | | Returns address of this device.
Bluetooth address |
getLocalDeviceEmul | public static synchronized DeviceEmul getLocalDeviceEmul()(Code) | | Returns instance of this class for local device emulation.
the device emulation object for the local device |
process | public void process(BytePack request)(Code) | | Processes the request.
Parameters: request - Packeted request |
registerService | void registerService(ServiceConnectionData serviceData) throws IOException(Code) | | Registers service at emulation server.
Parameters: serviceData - combined service connection info throws: IOException - if connection to emulation server failed. |
unregisterService | void unregisterService(int serverSocketPort)(Code) | | Unregisters service at emulation server.
Parameters: serverSocketPort - socket port desired serviceaccepted connections at |
|
|
|