Method Summary |
|
public void | attachToServer() Establishes TCP/IP connection to the VM being debugged.
NOTE: It's one of few methods in KJDB that produces non-debug
output directly. |
public int | availableInPrivateBuffer() Returns the number of bytes that are available in the buffer
that that contains received handshake string. |
public void | done() This method sets the finished field that
indicates that the background thread is to be finished. |
public void | initAsClient(String serverName, int portNumber, Vector replies) Intializes some internal fields of the object. |
public boolean | isStarted() Checks if the background thread is initialized and is not received
request for terminating yet. |
public int | readNextFromPrivateBuffer() Reads next byte from the buffer that contains received
handshake string. |
public void | receive() Stores a portion of received replies in the outer buffer. |
public void | run() It's an entry point of background thread. |
public void | startHandShake(int len) Initiates handshake procedure that is physically performed
by run() method and waits for run()
method's sterting the waiting for reply. |
public void | write(int b) Writes a specified byte into the socket. |