LLDB mainline
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
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.

◆ SBCommunication() [2/3]

SBCommunication::SBCommunication ( const char *  broadcaster_name)

Definition at line 21 of file SBCommunication.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~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

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 ( )

◆ IsConnected()

bool SBCommunication::IsConnected ( ) const

◆ 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.

◆ operator=()

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

◆ Read()

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

◆ ReadThreadIsRunning()

bool SBCommunication::ReadThreadIsRunning ( )

◆ ReadThreadStart()

bool SBCommunication::ReadThreadStart ( )

◆ ReadThreadStop()

bool SBCommunication::ReadThreadStop ( )

◆ SetCloseOnEOF()

void SBCommunication::SetCloseOnEOF ( bool  b)

◆ SetReadThreadBytesReceivedCallback()

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

◆ Write()

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

Member Data Documentation

◆ m_opaque

lldb_private::ThreadedCommunication* lldb::SBCommunication::m_opaque = nullptr
private

◆ m_opaque_owned

bool lldb::SBCommunication::m_opaque_owned = false
private

Definition at line 79 of file SBCommunication.h.

Referenced by ~SBCommunication().


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