LLDB mainline
lldb::SBCommunication Class Reference

#include <SBCommunication.h>

Public Types

typedef void(* ReadThreadBytesReceived) (void *baton, const void *src, size_t src_len)

Public Member Functions

 FLAGS_ANONYMOUS_ENUM ()
 SBCommunication ()
 SBCommunication (const char *broadcaster_name)
 ~SBCommunication ()
 operator bool () const
bool IsValid () const
lldb::SBBroadcaster GetBroadcaster ()
lldb::ConnectionStatus AdoptFileDesriptor (int fd, bool owns_fd)
lldb::ConnectionStatus Connect (const char *url)
lldb::ConnectionStatus Disconnect ()
bool IsConnected () const
bool GetCloseOnEOF ()
void SetCloseOnEOF (bool b)
size_t Read (void *dst, size_t dst_len, uint32_t timeout_usec, lldb::ConnectionStatus &status)
size_t Write (const void *src, size_t src_len, lldb::ConnectionStatus &status)
bool ReadThreadStart ()
bool ReadThreadStop ()
bool ReadThreadIsRunning ()
bool SetReadThreadBytesReceivedCallback (ReadThreadBytesReceived callback, void *callback_baton)

Static Public Member Functions

static const char * GetBroadcasterClass ()

Private Member Functions

 SBCommunication (const SBCommunication &)=delete
const SBCommunicationoperator= (const SBCommunication &)=delete

Private Attributes

lldb_private::ThreadedCommunicationm_opaque = nullptr
bool m_opaque_owned = false

Detailed Description

Definition at line 17 of file SBCommunication.h.

Member Typedef Documentation

◆ ReadThreadBytesReceived

typedef void(* lldb::SBCommunication::ReadThreadBytesReceived) (void *baton, const void *src, size_t src_len)

Definition at line 33 of file SBCommunication.h.

Constructor & Destructor Documentation

◆ SBCommunication() [1/3]

SBCommunication::SBCommunication ( )

Definition at line 19 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by operator=(), and SBCommunication().

◆ SBCommunication() [2/3]

SBCommunication::SBCommunication ( const char * broadcaster_name)

Definition at line 21 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, m_opaque, and m_opaque_owned.

◆ ~SBCommunication()

SBCommunication::~SBCommunication ( )

Definition at line 27 of file SBCommunication.cpp.

References m_opaque, and m_opaque_owned.

◆ SBCommunication() [3/3]

lldb::SBCommunication::SBCommunication ( const SBCommunication & )
privatedelete

References SBCommunication().

Member Function Documentation

◆ AdoptFileDesriptor()

ConnectionStatus SBCommunication::AdoptFileDesriptor ( int fd,
bool owns_fd )

◆ Connect()

ConnectionStatus SBCommunication::Connect ( const char * url)

◆ Disconnect()

ConnectionStatus SBCommunication::Disconnect ( )

◆ FLAGS_ANONYMOUS_ENUM()

lldb::SBCommunication::FLAGS_ANONYMOUS_ENUM ( )
inline

< Sent when the communications connection is lost.

< Sent by the read thread when bytes become available.

< Sent by the read thread when it exits to inform clients.

< Sent by clients that need to cancel the read thread.

< Sent when data received makes a complete packet.

Definition at line 19 of file SBCommunication.h.

◆ GetBroadcaster()

SBBroadcaster SBCommunication::GetBroadcaster ( )

Definition at line 163 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ GetBroadcasterClass()

const char * SBCommunication::GetBroadcasterClass ( )
static

◆ GetCloseOnEOF()

bool SBCommunication::GetCloseOnEOF ( )

Definition at line 44 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ IsConnected()

bool SBCommunication::IsConnected ( ) const

Definition at line 98 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ IsValid()

bool SBCommunication::IsValid ( ) const

Definition at line 34 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator bool()

SBCommunication::operator bool ( ) const
explicit

Definition at line 38 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ operator=()

const SBCommunication & lldb::SBCommunication::operator= ( const SBCommunication & )
privatedelete

References SBCommunication().

◆ Read()

size_t SBCommunication::Read ( void * dst,
size_t dst_len,
uint32_t timeout_usec,
lldb::ConnectionStatus & status )

◆ ReadThreadIsRunning()

bool SBCommunication::ReadThreadIsRunning ( )

Definition at line 145 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ ReadThreadStart()

bool SBCommunication::ReadThreadStart ( )

Definition at line 133 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ ReadThreadStop()

bool SBCommunication::ReadThreadStop ( )

Definition at line 139 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ SetCloseOnEOF()

void SBCommunication::SetCloseOnEOF ( bool b)

Definition at line 52 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ SetReadThreadBytesReceivedCallback()

bool SBCommunication::SetReadThreadBytesReceivedCallback ( ReadThreadBytesReceived callback,
void * callback_baton )

Definition at line 151 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque.

◆ Write()

size_t SBCommunication::Write ( const void * src,
size_t src_len,
lldb::ConnectionStatus & status )

Member Data Documentation

◆ m_opaque

◆ m_opaque_owned

bool lldb::SBCommunication::m_opaque_owned = false
private

Definition at line 79 of file SBCommunication.h.

Referenced by SBCommunication(), and ~SBCommunication().


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