kodi
Public Member Functions | Protected Attributes | List of all members
PLT_OutputDatagramStream Class Reference

The PLT_OutputDatagramStream class is a simple buffered output stream used when writing SSDP packets on a UDP socket. More...

#include <PltDatagramStream.h>

Inheritance diagram for PLT_OutputDatagramStream:
Inheritance graph
[legend]
Collaboration diagram for PLT_OutputDatagramStream:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from NPT_OutputStream
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_UdpSocketm_Socket
 
NPT_DataBuffer m_Buffer
 
NPT_SocketAddressm_Address
 

Detailed Description

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.


The documentation for this class was generated from the following files: