1 //===-- SWIG Interface for SBCommunication ----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
16 eBroadcastBitDisconnected = (1 << 0), ///< Sent when the communications connection is lost.
17 eBroadcastBitReadThreadGotBytes = (1 << 1), ///< Sent by the read thread when bytes become available.
18 eBroadcastBitReadThreadDidExit = (1 << 2), ///< Sent by the read thread when it exits to inform clients.
19 eBroadcastBitReadThreadShouldExit = (1 << 3), ///< Sent by clients that need to cancel the read thread.
20 eBroadcastBitPacketAvailable = (1 << 4), ///< Sent when data received makes a complete packet.
21 eAllEventBits = 0xffffffff
24 typedef void (*ReadThreadBytesReceived) (void *baton, const void *src, size_t src_len);
27 SBCommunication (const char * broadcaster_name);
37 static const char *GetBroadcasterClass();
39 lldb::ConnectionStatus
40 AdoptFileDesriptor (int fd, bool owns_fd);
42 lldb::ConnectionStatus
43 Connect (const char *url);
45 lldb::ConnectionStatus
55 SetCloseOnEOF (bool b);
60 uint32_t timeout_usec,
61 lldb::ConnectionStatus &status);
64 Write (const void *src,
66 lldb::ConnectionStatus &status);
75 ReadThreadIsRunning ();
78 SetReadThreadBytesReceivedCallback (ReadThreadBytesReceived callback,
79 void *callback_baton);