v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::gdb_server::Transport Class Referenceabstract

#include <transport.h>

Inheritance diagram for v8::internal::wasm::gdb_server::Transport:
Collaboration diagram for v8::internal::wasm::gdb_server::Transport:

Public Member Functions

 Transport (SocketHandle s)
 
 ~Transport () override
 
bool Read (char *dst, int32_t len) override
 
bool Write (const char *src, int32_t len) override
 
bool IsDataAvailable () const override
 
void Disconnect () override
 
void Close () override
 
- Public Member Functions inherited from v8::internal::wasm::gdb_server::TransportBase
virtual ~TransportBase ()
 
virtual bool AcceptConnection ()=0
 
virtual void WaitForDebugStubEvent ()=0
 
virtual bool SignalThreadEvent ()=0
 

Static Public Attributes

static const int kBufSize = 4096
 

Protected Member Functions

void CopyFromBuffer (char **dst, int32_t *len)
 
virtual bool ReadSomeData ()=0
 

Protected Attributes

std::unique_ptr< char[]> buf_
 
int32_t pos_
 
int32_t size_
 
SocketHandle handle_bind_
 
SocketHandle handle_accept_
 

Detailed Description

Definition at line 114 of file transport.h.

Constructor & Destructor Documentation

◆ Transport()

v8::internal::wasm::gdb_server::Transport::Transport ( SocketHandle s)
explicit

Definition at line 105 of file transport.cc.

◆ ~Transport()

v8::internal::wasm::gdb_server::Transport::~Transport ( )
override

Definition at line 112 of file transport.cc.

Member Function Documentation

◆ Close()

void v8::internal::wasm::gdb_server::Transport::Close ( )
overridevirtual

Implements v8::internal::wasm::gdb_server::TransportBase.

Definition at line 184 of file transport.cc.

Here is the call graph for this function:

◆ CopyFromBuffer()

void v8::internal::wasm::gdb_server::Transport::CopyFromBuffer ( char ** dst,
int32_t * len )
protected

Definition at line 118 of file transport.cc.

Here is the caller graph for this function:

◆ Disconnect()

void v8::internal::wasm::gdb_server::Transport::Disconnect ( )
overridevirtual

Implements v8::internal::wasm::gdb_server::TransportBase.

Definition at line 190 of file transport.cc.

Here is the caller graph for this function:

◆ IsDataAvailable()

bool v8::internal::wasm::gdb_server::Transport::IsDataAvailable ( ) const
overridevirtual

Implements v8::internal::wasm::gdb_server::TransportBase.

Definition at line 160 of file transport.cc.

◆ Read()

bool v8::internal::wasm::gdb_server::Transport::Read ( char * dst,
int32_t len )
overridevirtual

Implements v8::internal::wasm::gdb_server::TransportBase.

Definition at line 126 of file transport.cc.

Here is the call graph for this function:

◆ ReadSomeData()

virtual bool v8::internal::wasm::gdb_server::Transport::ReadSomeData ( )
protectedpure virtual

Implemented in v8::internal::wasm::gdb_server::SocketTransport.

Here is the caller graph for this function:

◆ Write()

bool v8::internal::wasm::gdb_server::Transport::Write ( const char * src,
int32_t len )
overridevirtual

Implements v8::internal::wasm::gdb_server::TransportBase.

Definition at line 141 of file transport.cc.

Member Data Documentation

◆ buf_

std::unique_ptr<char[]> v8::internal::wasm::gdb_server::Transport::buf_
protected

Definition at line 135 of file transport.h.

◆ handle_accept_

SocketHandle v8::internal::wasm::gdb_server::Transport::handle_accept_
protected

Definition at line 139 of file transport.h.

◆ handle_bind_

SocketHandle v8::internal::wasm::gdb_server::Transport::handle_bind_
protected

Definition at line 138 of file transport.h.

◆ kBufSize

const int v8::internal::wasm::gdb_server::Transport::kBufSize = 4096
static

Definition at line 126 of file transport.h.

◆ pos_

int32_t v8::internal::wasm::gdb_server::Transport::pos_
protected

Definition at line 136 of file transport.h.

◆ size_

int32_t v8::internal::wasm::gdb_server::Transport::size_
protected

Definition at line 137 of file transport.h.


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