Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

XFuRemoteDebug Class Reference

#include <XFuRemoteDebug.h>

List of all members.

Public Member Functions

INT32 send (const CHAR8 *aData)
INT32 send (const CHAR8 *aData, INT32 aSize)
INT registerService (const CHAR *aName, XFuRemoteDebugService &aService)
XFuRemoteDebugServiceuregisterService (const CHAR *aName)
virtual ~XFuRemoteDebug ()

Static Public Member Functions

XFuRemoteDebug * create (INT32 aPort)

Protected Member Functions

 XFuRemoteDebug ()
INT init (INT32 aPort)
virtual void receive (const CHAR8 *aData, INT32 aSize, INT32 aError)
virtual void event (INT32 aError)

Private Attributes

XFcHashtable< XFuStringKey,
XFuRemoteDebugService * > 
mService
 Holds service hash table.

CHAR8 mRecvBuffer [128]
 Holds buffer for receiving data, temporary!

INT32 mPosition
 Holds buffer position.

XFcRemoteCommunication * mRemoteComm
 Holds pointer to remote connection server.


Constructor & Destructor Documentation

XFuRemoteDebug::XFuRemoteDebug   [protected]
 

Constructor, empty implementation.

Definition at line 27 of file XFuRemoteDebug.cpp.

XFuRemoteDebug::~XFuRemoteDebug   [virtual]
 

Destructor, removes remote debugger from core.

Definition at line 31 of file XFuRemoteDebug.cpp.

References mRemoteComm.


Member Function Documentation

XFuRemoteDebug * XFuRemoteDebug::create INT32    aPort [static]
 

static create

Definition at line 36 of file XFuRemoteDebug.cpp.

References init().

void XFuRemoteDebug::event INT32    aError [protected, virtual]
 

Event callback from remote debug server.

Parameters:
aError is event status.

Definition at line 74 of file XFuRemoteDebug.cpp.

References send().

INT XFuRemoteDebug::init INT32    aPort [protected]
 

Initializes the Remote Debugger and registers it to XForge core.

Returns:
1 if success else 0.

Definition at line 45 of file XFuRemoteDebug.cpp.

References mRemoteComm.

Referenced by create().

void XFuRemoteDebug::receive const CHAR8 *    aData,
INT32    aSize,
INT32    aError
[protected, virtual]
 

Callback for receiving data.

Parameters:
aData holds buffer of incoming data.
aSize holds size of the buffer.
aError holds receive error.

Definition at line 88 of file XFuRemoteDebug.cpp.

References mPosition, mRecvBuffer, mService, and XFuRemoteDebugService::remoteDebugReceive().

INT XFuRemoteDebug::registerService const CHAR *    aName,
XFuRemoteDebugService   aService
 

Register remote debug service.

Parameters:
aService remote debug service.
Returns:
1 if register wass successfully else 0.

Definition at line 61 of file XFuRemoteDebug.cpp.

References mService.

INT32 XFuRemoteDebug::send const CHAR8 *    aData,
INT32    aSize
 

Sends data to remote debugger.

Parameters:
aData pointer to buffer.
aSize size of the data buffer.
Returns:
sent byte count.

Definition at line 56 of file XFuRemoteDebug.cpp.

References mRemoteComm.

INT32 XFuRemoteDebug::send const CHAR8 *    aData
 

Sends data to remote debugger.

Parameters:
aData pointer to string.
Returns:
sent byte count.

Definition at line 51 of file XFuRemoteDebug.cpp.

References mRemoteComm.

Referenced by event().

XFuRemoteDebugService * XFuRemoteDebug::uregisterService const CHAR *    aName
 

Removes registered service.

Parameters:
aName of the service.
Returns:
pointer to service.

Definition at line 68 of file XFuRemoteDebug.cpp.

References mService.


Member Data Documentation

INT32 XFuRemoteDebug::mPosition [private]
 

Holds buffer position.

Definition at line 37 of file XFuRemoteDebug.h.

Referenced by receive().

CHAR8 XFuRemoteDebug::mRecvBuffer[128] [private]
 

Holds buffer for receiving data, temporary!

Definition at line 34 of file XFuRemoteDebug.h.

Referenced by receive().

XFcRemoteCommunication* XFuRemoteDebug::mRemoteComm [private]
 

Holds pointer to remote connection server.

Definition at line 40 of file XFuRemoteDebug.h.

Referenced by init(), send(), and ~XFuRemoteDebug().

XFcHashtable<XFuStringKey, XFuRemoteDebugService *> XFuRemoteDebug::mService [private]
 

Holds service hash table.

Definition at line 31 of file XFuRemoteDebug.h.

Referenced by receive(), registerService(), and uregisterService().


The documentation for this class was generated from the following files:
   
X-Forge Documentation
Confidential
Copyright © 2002-2003 Fathammer
   
Documentation generated
with doxygen
by Dimitri van Heesch