|
kodi
|
The PLT_InputDatagramStream class is a simple buffered input stream used when reading SSDP packets on a UDP socket. More...
#include <PltDatagramStream.h>


Public Member Functions | |
| PLT_InputDatagramStream (NPT_UdpSocket *socket, NPT_Size buffer_size=2000) | |
| NPT_Result | GetInfo (NPT_SocketInfo &info) |
| NPT_Result | Read (void *buffer, NPT_Size bytes_to_read, NPT_Size *bytes_read=0) override |
| NPT_Result | Seek (NPT_Position offset) override |
| NPT_Result | Skip (NPT_Size offset) override |
| NPT_Result | Tell (NPT_Position &offset) override |
| NPT_Result | GetSize (NPT_LargeSize &size) override |
| NPT_Result | GetAvailable (NPT_LargeSize &available) override |
Public Member Functions inherited from NPT_InputStream | |
| virtual NPT_Result | Load (NPT_DataBuffer &buffer, NPT_Size max_read=0) |
| virtual NPT_Result | ReadFully (void *buffer, NPT_Size bytes_to_read) |
| NPT_Result | ReadUI64 (NPT_UInt64 &value) |
| NPT_Result | ReadUI32 (NPT_UInt32 &value) |
| NPT_Result | ReadUI24 (NPT_UInt32 &value) |
| NPT_Result | ReadUI16 (NPT_UInt16 &value) |
| NPT_Result | ReadUI08 (NPT_UInt8 &value) |
Protected Attributes | |
| NPT_UdpSocket * | m_Socket |
| NPT_SocketInfo | m_Info |
| NPT_DataBuffer | m_Buffer |
| NPT_Position | m_BufferOffset |
The PLT_InputDatagramStream class is a simple buffered input stream used when reading SSDP packets on a UDP socket.
It allows to use Neptune HTTP parsing as if reading on a TCP socket.
1.8.13