jde.debugger
Class DebuggeeSIO

java.lang.Object
  |
  +--jde.debugger.DebuggeeSIO
All Implemented Interfaces:
Protocol

public class DebuggeeSIO
extends java.lang.Object
implements Protocol

Connects standard input/output/error from a debuggee process to Emacs. This is done using four threads: a first thread started by the initConnect method, which waits for Emacs to connect to a specified port. When that connection is established, three threads for stdin, stdout and stderr are created and started. The threads continue until the shutdown method is called. Created: Sun Feb 18 01:24:09 2001

Version:
$Revision: 1.7 $
Author:
Paul Kinnucan

Fields inherited from interface jde.debugger.Protocol
APP_IO, ATTACH_SHMEM, ATTACH_SOCKET, BR, BREAK, CANCEL_TRACE_CLASSES, CANCEL_TRACE_METHODS, CANCEL_TRACE_THREADS, CLEAR, CMD_NOK, CMD_OK, COMMAND_ERROR, COMMAND_RESULT, COMMANDS, CONNECTED_TO_VM, DEBUG, ERROR, EVALUATE, EVENT_BREAKPOINT_HIT, EVENT_CLASS_PREPARE, EVENT_CLASS_UNLOAD, EVENT_EXCEPTION, EVENT_METHOD_ENTRY, EVENT_METHOD_EXIT, EVENT_OTHER, EVENT_STEP_COMPLETED, EVENT_THREAD_DEATH, EVENT_THREAD_START, EVENT_VM_DEATH, EVENT_VM_DISCONNECT, EVENT_VM_START, EVENT_WATCHPOINT_HIT, EVENTS, EVENTSET, EXCEPTION, EXIT, FINISH, FRAMEWORK, GET_ARRAY, GET_LOADED_CLASSES, GET_LOCALS, GET_OBJECT, GET_OBJECT_MONITORS, GET_PATH_INFORMATION, GET_STRING, GET_THREAD, GET_THREADS, GUI, INTERRUPT, INVALID, JDE_BUG, JDE_INIT_DEBUG_SESSION, JDE_PIPE, KILL_THREAD, LAUNCH, LISTEN_SHMEM, LISTEN_SOCKET, MESSAGE, NONE, NOQUOTE, QUIT, QUOTE, REPORT_IDS_IN_USE, RESUME, RUN, SPEC_RESOLVED, STEP, SUSPEND, TRACE_CLASSES, TRACE_EXCEPTIONS, TRACE_METHODS, TRACE_THREADS, WARNING, WATCH
 
Constructor Summary
DebuggeeSIO(Debugger debugger)
           
 
Method Summary
 int initConnect(java.lang.Integer cmdId)
          Launches a thread to connect the Emacs standard I/O buffer for the current process to the standard I/O of the process.
 void initTransport()
          Describe initTransport method here.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebuggeeSIO

public DebuggeeSIO(Debugger debugger)
Method Detail

initConnect

public int initConnect(java.lang.Integer cmdId)
                throws JDEException
Launches a thread to connect the Emacs standard I/O buffer for the current process to the standard I/O of the process.

This method creates a socket for the standard I/O connection. The thread waits for Emacs to connect to the standard I/O socket.

Returns:
Address of standard I/O socket.
Throws:
JDEException - if an error occurs

initTransport

public void initTransport()
Describe initTransport method here.

shutdown

public void shutdown()