#include "lldb/Host/common/UDPSocket.h"
#include "lldb/Host/Config.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#if LLDB_ENABLE_POSIX
#include <arpa/inet.h>
#include <sys/socket.h>
#endif
#include <memory>
usingnamespacelldb;
usingnamespacelldb_private;
static const int kDomain = …;
static const int kType = …;
static const char *g_not_supported_error = …;
UDPSocket::UDPSocket(NativeSocket socket) : … { … }
UDPSocket::UDPSocket(bool should_close, bool child_processes_inherit)
: … { … }
size_t UDPSocket::Send(const void *buf, const size_t num_bytes) { … }
Status UDPSocket::Connect(llvm::StringRef name) { … }
Status UDPSocket::Listen(llvm::StringRef name, int backlog) { … }
llvm::Expected<std::unique_ptr<UDPSocket>>
UDPSocket::Connect(llvm::StringRef name, bool child_processes_inherit) { … }
std::string UDPSocket::GetRemoteConnectionURI() const { … }