8 #ifndef WPIUTIL_SUPPORT_RAW_SOCKET_OSTREAM_H_ 9 #define WPIUTIL_SUPPORT_RAW_SOCKET_OSTREAM_H_ 11 #include "llvm/raw_ostream.h" 20 : m_stream(stream), m_shouldClose(shouldClose) {}
25 bool has_error()
const {
return m_error; }
26 void clear_error() { m_error =
false; }
29 void error_detected() { m_error =
true; }
32 void write_impl(
const char* data, std::size_t len)
override;
33 uint64_t current_pos()
const override;
42 #endif // WPIUTIL_SUPPORT_RAW_SOCKET_OSTREAM_H_ Definition: NetworkStream.h:17
Definition: SocketError.cpp:18
Definition: raw_socket_ostream.h:17
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:33