3 #ifndef INCLUDE_NN_NLIB_TCPOUTPUTSTREAM_H_
4 #define INCLUDE_NN_NLIB_TCPOUTPUTSTREAM_H_
7 #ifdef NLIB_SOCKET_ENABLED
15 struct TcpOutputStreamSettings {
18 TcpOutputStreamSettings() : buf(NULL), buffer_size(8192) {}
22 class TcpOutputStream
NLIB_FINAL :
public OutputStream {
28 TcpOutputStream()
NLIB_NOEXCEPT : m_Socket(NLIB_SOCKET_INVALID), m_Buf(NULL), m_BufSize(0) {}
31 TcpOutputStreamSettings settings;
32 return this->Init(sockfd, settings);
46 UniquePtr<uint8_t[]> m_BufferHolder;
52 #endif // INCLUDE_NN_NLIB_TCPOUTPUTSTREAM_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_OVERRIDE
Defines override if it is available for use. If not, holds an empty string.
Defines that class that is corresponding to std::unique_ptr.
A file that contains the configuration information for each development environment.
Defines the base class for output streams.