| |
|
| java.lang.Object com.sun.midp.jsr82emul.NotifierEmul
NotifierEmul | public class NotifierEmul implements EmulUnit(Code) | | Emulates JSR 82 notifier.
|
Constructor Summary | |
public | NotifierEmul(int handle) Creates new instance and registers it in emulation environment with
given handle. |
Method Summary | |
public void | close() Closes the notifier (emulation). | public void | initialize(ServiceConnectionData serviceData) Initializes this notifier emulation unit. | public void | process(BytePack request) Processes request from porting layer to emulation. | public void | startAccept() Starts accepting incoming connection. |
acceptor | Acceptor acceptor(Code) | | Current connection acceptor, null if there is no one.
|
nextSocketPort | static int nextSocketPort(Code) | | next free socket port.
|
port | int port(Code) | | PSM or channel id.
|
serverSocket | Socket serverSocket(Code) | | Server socet to accept connections.
|
NotifierEmul | public NotifierEmul(int handle)(Code) | | Creates new instance and registers it in emulation environment with
given handle. It is initialized by the next request to emulation.
Parameters: handle - integer handle reserved for the new instance in native layer. |
close | public void close()(Code) | | Closes the notifier (emulation).
exception: IOException - if emulation server does not respond properly |
initialize | public void initialize(ServiceConnectionData serviceData)(Code) | | Initializes this notifier emulation unit.
Parameters: serviceData - packed info on service details |
process | public void process(BytePack request)(Code) | | Processes request from porting layer to emulation.
Parameters: request - packed request to process |
startAccept | public void startAccept()(Code) | | Starts accepting incoming connection.
IMPL_NOTE it should completely substitute accept() when moving emul
below porting layer completed
|
|
|
|