class RemoteAPIAdapter

Defined at line 19 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

Converts a raw stream of input data to a series of RemoteAPI calls.

Public Methods

void RemoteAPIAdapter ()

Construct a RemoteAPIAdapter that's not hooked up to any streams. Attempting to call

|OnStreamReadable| in this state will do nothing.

Defined at line 23 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

void ~RemoteAPIAdapter ()

Defined at line 32 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

void set_api (RemoteAPI * api)

Defined at line 34 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

RemoteAPI * api ()

Defined at line 35 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

void set_stream (debug::StreamBuffer * stream)

Defined at line 36 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

debug::StreamBuffer * stream ()

Defined at line 37 of file ../../src/developer/debug/debug_agent/remote_api_adapter.h

void RemoteAPIAdapter (RemoteAPI * remote_api, debug::StreamBuffer * stream)

The stream will be used to read input and send replies back to the

client. The creator must set it up so that OnStreamReadable() is called

whenever there is new data to read on the stream.

The pointers must outlive this class (ownership is not taken).

Defined at line 44 of file ../../src/developer/debug/debug_agent/remote_api_adapter.cc

void OnStreamReadable ()

Callback for when data is available to read on the stream.

Defined at line 47 of file ../../src/developer/debug/debug_agent/remote_api_adapter.cc