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>

Collaboration diagram for lldb::SBCommunication:
Collaboration graph
[legend]

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::Communicationm_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_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCommunication() [2/3]

SBCommunication::SBCommunication ( const char *  broadcaster_name)

Definition at line 23 of file SBCommunication.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBCommunication()

SBCommunication::~SBCommunication ( )

Definition at line 28 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 173 of file SBCommunication.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, LLDB_RECORD_RESULT, and m_opaque.

◆ GetBroadcasterClass()

const char * SBCommunication::GetBroadcasterClass ( )
static

Definition at line 181 of file SBCommunication.cpp.

References LLDB_RECORD_STATIC_METHOD_NO_ARGS.

◆ GetCloseOnEOF()

bool SBCommunication::GetCloseOnEOF ( )

◆ IsConnected()

bool SBCommunication::IsConnected ( ) const

◆ IsValid()

bool SBCommunication::IsValid ( ) const

Definition at line 35 of file SBCommunication.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator bool()

SBCommunication::operator bool ( ) const
explicit

Definition at line 39 of file SBCommunication.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ 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::Communication* 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: