| |
|
| java.lang.Object com.sun.midp.jsr82emul.EmulationClient
All known Subclasses: com.sun.midp.jsr82emul.ConnectionEmul, com.sun.midp.jsr82emul.DeviceEmul,
EmulationClient | public class EmulationClient (Code) | | Represents a client for JSR 82 emulation environment.
It is not a part of JSR 82 implementation and is only used within
JSR 82 emulation mode. The emulation mode allows running tests without
real native Bluetooth libraries or hardware.
In the emulation mode the client runs under J2ME VM control and connects
thru a socket to a server which runs somewhere on the Internet under J2SE
VM control.
A client represents a Bluetooth local or remote device, connection
or anything that requires Bluetooth ether communication. A server
in turn represents Bluetooth ether.
|
Method Summary | |
protected void | connect() Opens socket connection to current host at current port. | protected void | disconnect() Closes current socket connection. | native static String | getLocalIP() Retrieves local IP address. |
internalSecurityToken | protected static SecurityToken internalSecurityToken(Code) | | Internal security token that grants access to restricted API.
|
messenger | protected Messenger messenger(Code) | | Keeps messenger that proveds utilities for communicating with server.
|
EmulationClient | protected EmulationClient()(Code) | | Creates an instance.
|
connect | protected void connect() throws IOException(Code) | | Opens socket connection to current host at current port.
exception: IOException - if there is an open connection or en error ocurred while trying to connect. |
disconnect | protected void disconnect() throws IOException(Code) | | Closes current socket connection.
exception: IOException - if an error occured or ocurred. |
getLocalIP | native static String getLocalIP()(Code) | | Retrieves local IP address.
String object containing local IP address, null if retrieving failed. |
|
|
|