v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Member Functions | List of all members
v8toolkit::WebsocketChannel Class Reference

#include <debugger.h>

Inheritance diagram for v8toolkit::WebsocketChannel:
Inheritance graph
[legend]
Collaboration diagram for v8toolkit::WebsocketChannel:
Collaboration graph
[legend]

Public Member Functions

 WebsocketChannel (v8toolkit::DebugContext &debug_context, short port)
 
virtual ~WebsocketChannel ()
 
void wait_for_connection (std::chrono::duration< float > sleep_between_polls=std::chrono::duration< float >(0.1f))
 
void poll ()
 
void poll_one ()
 
void poll_until_idle (float idle_time=1.0f)
 
void run_one ()
 
void send_message (void *data, size_t length)
 
float seconds_since_message_received ()
 
float seconds_since_message_sent ()
 
float seconds_since_message ()
 

Detailed Description

Inspector types:

v8_inspector::V8Inspector::Channel

v8_inspector::V8InspectorClient

V8InspectorSession:

v8_inspector::V8Inspector

Definition at line 166 of file debugger.h.

Constructor & Destructor Documentation

v8toolkit::WebsocketChannel::WebsocketChannel ( v8toolkit::DebugContext debug_context,
short  port 
)
v8toolkit::WebsocketChannel::~WebsocketChannel ( )
virtual

Definition at line 81 of file debugger.cpp.

Member Function Documentation

void v8toolkit::WebsocketChannel::wait_for_connection ( std::chrono::duration< float >  sleep_between_polls = std::chrono::duration<float>(0.1f))

Definition at line 247 of file debugger.cpp.

References poll_one().

Here is the call graph for this function:

void v8toolkit::WebsocketChannel::poll ( )

Definition at line 230 of file debugger.cpp.

Referenced by poll_until_idle().

Here is the caller graph for this function:

void v8toolkit::WebsocketChannel::poll_one ( )

runs a single request if available, otherwise returns immediately

Definition at line 234 of file debugger.cpp.

Referenced by wait_for_connection().

Here is the caller graph for this function:

void v8toolkit::WebsocketChannel::poll_until_idle ( float  idle_time = 1.0f)

polls until connection has been idle for specified amount of time

Parameters
idle_timeamount of time between messages to wait until returning

Definition at line 238 of file debugger.cpp.

References poll(), and seconds_since_message().

Here is the call graph for this function:

void v8toolkit::WebsocketChannel::run_one ( )

blocks until a request is handled

Definition at line 226 of file debugger.cpp.

void v8toolkit::WebsocketChannel::send_message ( void *  data,
size_t  length 
)

Definition at line 215 of file debugger.cpp.

Referenced by WebsocketChannel().

Here is the caller graph for this function:

float v8toolkit::WebsocketChannel::seconds_since_message_received ( )

How long ago was most recent message received

Returns
number of seconds

Definition at line 294 of file debugger.cpp.

float v8toolkit::WebsocketChannel::seconds_since_message_sent ( )

How long ago was most recent message sent

Returns
number of sceonds

Definition at line 299 of file debugger.cpp.

float v8toolkit::WebsocketChannel::seconds_since_message ( )

how long ago was a message either sent or received

Returns
number of seconds

Definition at line 306 of file debugger.cpp.

Referenced by poll_until_idle().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: