| java.lang.Object com.sun.cldchi.tools.memoryprofiler.jdwp.Transport
All known Subclasses: com.sun.cldchi.tools.memoryprofiler.jdwp.SocketTransport,
Transport | abstract class Transport (Code) | | This abstract class represents a generic transport for JDWP. In KJDB it's
used its subclass SocketTransport .
See Also: jdwp.SocketTransport |
Field Summary | |
public Vector | Replies A list of received JDWP repliesa and still not requested
by other parts of the code. |
Method Summary | |
public void | Handshake() Performs JDWP "handshake" procedure (undocumented ?). | abstract public int | available() Returns the number of bytes that can be received immediately. | abstract public int | read() Receives the next byte of data. | public void | receive() Receives all available JDWP reply packets and places them into the
vector Replies . | public Reply | receiveEvent(int command, int Delay) Tries to receive a JDWP event. | public Reply | receiveReply() Receives JDWP reply packet. | public Reply | receiveReply(int ReplyID) Tries to receive a JDWP reply packet with specified ID. | public Reply | receiveReply(int ReplyID, int Delay) Tries to receive a JDWP reply packet with specified ID. | public void | sendBadCommandPacket(Command c, int WrongSize) Sends JDWP command packet with wrong length field. | public void | sendCommand(Command c) Sends JDWP command packet. | abstract public void | write(int b) Sends the specified byte via JDWP. | public void | write(byte[] b, int off, int len) Sends the specified bytes via JDWP. |
Replies | public Vector Replies(Code) | | A list of received JDWP repliesa and still not requested
by other parts of the code.
|
Handshake | public void Handshake() throws IOException(Code) | | Performs JDWP "handshake" procedure (undocumented ?). It sends
a "JDWP-Handshake" string and waits for receiving the
same string. After handshaking the JDWP connection is considered
estblished.
|
available | abstract public int available() throws IOException(Code) | | Returns the number of bytes that can be received immediately.
the number of bytes that can be received immediately |
read | abstract public int read() throws IOException(Code) | | Receives the next byte of data. The value byte is
returned as an int in the range 0 to 255. If no byte is
available, the value -1 is returned.
the next byte that is read via JDWP |
receiveEvent | public Reply receiveEvent(int command, int Delay) throws IOException(Code) | | Tries to receive a JDWP event. It looks
into a list of already received packets and tries to locate it.
If the desired packet is not found, is makes a pause and then
tries to receive the deired reply again.
In case of timeout Reply.errNotAvailable
is returned.
Parameters: command - a command number for Event/Composite JDWP command(should be always 0x4064 ) Parameters: Delay - a timeout for this operation a JDWP event or Reply.errNotAvailable if not found |
receiveReply | public Reply receiveReply() throws IOException(Code) | | Receives JDWP reply packet.
If there is no reply packet available, function returns packet
with error code Reply.errNotAvailable .
a JDWP reply or Reply.errNotAvailable if notavailable |
receiveReply | public Reply receiveReply(int ReplyID) throws IOException(Code) | | Tries to receive a JDWP reply packet with specified ID. It looks
into a list of already received packets and tries to locate it.
If the desired packet is not found, Reply.errNotAvailable
is returned.
Parameters: ReplyID - an ID of the desired JDWP reply packet a JDWP reply packet with specified ID or Reply.errNotAvailable if not found |
receiveReply | public Reply receiveReply(int ReplyID, int Delay) throws IOException(Code) | | Tries to receive a JDWP reply packet with specified ID. It looks
into a list of already received packets and tries to locate it.
If the desired packet is not found, is makes a pause and then
tries to receive the deired reply again.
In case of timeout Reply.errNotAvailable
is returned.
Parameters: ReplyID - an ID of the desired JDWP reply packet Parameters: Delay - a timeout for this operation a JDWP reply packet with specified ID or Reply.errNotAvailable if not found |
sendBadCommandPacket | public void sendBadCommandPacket(Command c, int WrongSize) throws IOException(Code) | | Sends JDWP command packet with wrong length field. This method is
never used by KJDB but it's used by CLDC-DI and JavaCard BackEnd
test suite.
Parameters: c - a command to be sent Parameters: WrongSize - a size of the packet |
sendCommand | public void sendCommand(Command c) throws IOException(Code) | | Sends JDWP command packet.
Parameters: c - a command to be sent |
write | abstract public void write(int b) throws IOException(Code) | | Sends the specified byte via JDWP.
Parameters: b - a byte to be sent |
write | public void write(byte[] b, int off, int len) throws IOException(Code) | | Sends the specified bytes via JDWP.
Parameters: b - an array of bytes Parameters: off - an offset of the first byte to be sent Parameters: len - a number of bytes to be sent |
|
|