LLDB  mainline
Public Types | Public Member Functions | Static Public Member Functions | 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 ()
 

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/2]

SBCommunication::SBCommunication ( )

Definition at line 19 of file SBCommunication.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBCommunication() [2/2]

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.

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

◆ GetBroadcasterClass()

const char * SBCommunication::GetBroadcasterClass ( )
static

◆ GetCloseOnEOF()

bool SBCommunication::GetCloseOnEOF ( )

◆ IsConnected()

bool SBCommunication::IsConnected ( ) const

◆ IsValid()

bool SBCommunication::IsValid ( ) const

◆ operator bool()

SBCommunication::operator bool ( ) const
explicit

Definition at line 39 of file SBCommunication.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

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

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