kodi
|
The PLT_OutputDatagramStream class is a simple buffered output stream used when writing SSDP packets on a UDP socket. More...
#include <PltDatagramStream.h>
Public Member Functions | |
PLT_OutputDatagramStream (NPT_UdpSocket *socket, NPT_Size size=4096, const NPT_SocketAddress *address=NULL) | |
NPT_Result | Write (const void *buffer, NPT_Size bytes_to_write, NPT_Size *bytes_written=NULL) override |
NPT_Result | Flush () override |
NPT_Result | Seek (NPT_Position offset) override |
NPT_Result | Tell (NPT_Position &offset) override |
![]() | |
virtual NPT_Result | WriteFully (const void *buffer, NPT_Size bytes_to_write) |
virtual NPT_Result | WriteString (const char *string_buffer) |
virtual NPT_Result | WriteLine (const char *line_buffer) |
NPT_Result | WriteUI64 (NPT_UInt64 value) |
NPT_Result | WriteUI32 (NPT_UInt32 value) |
NPT_Result | WriteUI24 (NPT_UInt32 value) |
NPT_Result | WriteUI16 (NPT_UInt16 value) |
NPT_Result | WriteUI08 (NPT_UInt8 value) |
Protected Attributes | |
NPT_UdpSocket * | m_Socket |
NPT_DataBuffer | m_Buffer |
NPT_SocketAddress * | m_Address |
The PLT_OutputDatagramStream class is a simple buffered output stream used when writing SSDP packets on a UDP socket.
It allows to use Neptune HTTP client as if writing on a TCP socket.