| java.lang.Object com.sun.cldchi.tools.memoryprofiler.jdwp.Transport com.sun.cldchi.tools.memoryprofiler.jdwp.SocketTransport
SocketTransport | class SocketTransport extends Transport (Code) | | This class represents a socket transport for JDWP. Actually
is used as proxy that communicates with
SocketTransportImpl that works in another thread and
performs all the job for communicating with VM being debugged via
JDWP.
See Also: jdwp.SocketTransportImpl See Also: jdwp.Transport |
Method Summary | |
public void | Handshake() Initialtes handshake procedure. | public void | attachToServer(String ServerName, int PortNumber) Connects to the specified port number on the named host. | public int | available() Returns a number of bytes that are available for reading. | public void | done() Closes socket and streams. | public int | read() Reads the next byte from the buffer. | public void | receive() Stores the received JDWP replies to the Replies
vector. | public void | write(int b) Writes the specified byte to the socket. |
Handshake | public void Handshake() throws IOException(Code) | | Initialtes handshake procedure. This procedure is performed
immediately after establishing TCP/IP connection and consist on
sending and receiving "JDWP-Handshake" string.
|
attachToServer | public void attachToServer(String ServerName, int PortNumber) throws UnknownHostException, IOException(Code) | | Connects to the specified port number on the named host. For this
task this mehtod initializes a SocketTransportImpl object
that works in another thread and manipulates it.
Parameters: ServerName - a host where VM being debugged is running Parameters: PortNumber - a TCP/IP port number to communicate with VM beingdebugged |
available | public int available() throws IOException(Code) | | Returns a number of bytes that are available for reading.
a number of bytes that are available for reading |
write | public void write(int b) throws IOException(Code) | | Writes the specified byte to the socket.
|
|
|