#include "IOStream.h"
#if defined(_WIN32)
#include <io.h>
#else
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#endif
#include <fstream>
#include <string>
#include <vector>
usingnamespacelldb_dap;
StreamDescriptor::StreamDescriptor() = default;
StreamDescriptor::StreamDescriptor(StreamDescriptor &&other) { … }
StreamDescriptor::~StreamDescriptor() { … }
StreamDescriptor &StreamDescriptor::operator=(StreamDescriptor &&other) { … }
StreamDescriptor StreamDescriptor::from_socket(SOCKET s, bool close) { … }
StreamDescriptor StreamDescriptor::from_file(int fd, bool close) { … }
bool OutputStream::write_full(llvm::StringRef str) { … }
bool InputStream::read_full(std::ofstream *log, size_t length,
std::string &text) { … }
bool InputStream::read_line(std::ofstream *log, std::string &line) { … }
bool InputStream::read_expected(std::ofstream *log, llvm::StringRef expected) { … }