39 #ifndef _PLT_DATAGRAM_H_
40 #define _PLT_DATAGRAM_H_
60 NPT_Size buffer_size = 2000);
63 NPT_Result GetInfo(NPT_SocketInfo& info);
66 NPT_Result Read(
void* buffer,
67 NPT_Size bytes_to_read,
68 NPT_Size* bytes_read = 0);
70 NPT_Result Seek(NPT_Position offset) { NPT_COMPILER_UNUSED(offset);
return NPT_FAILURE; }
71 NPT_Result Skip(NPT_Size offset) { NPT_COMPILER_UNUSED(offset);
return NPT_FAILURE; }
72 NPT_Result Tell(NPT_Position& offset){ NPT_COMPILER_UNUSED(offset);
return NPT_FAILURE; }
73 NPT_Result GetSize(NPT_LargeSize& size) { NPT_COMPILER_UNUSED(size);
return NPT_FAILURE; }
74 NPT_Result GetAvailable(NPT_LargeSize& available) { NPT_COMPILER_UNUSED(available);
return NPT_FAILURE; }
77 NPT_UdpSocket* m_Socket;
78 NPT_SocketInfo m_Info;
79 NPT_DataBuffer m_Buffer;
80 NPT_Position m_BufferOffset;
83 typedef NPT_Reference<PLT_InputDatagramStream> PLT_InputDatagramStreamReference;
99 const NPT_SocketAddress* address = NULL);
103 NPT_Result Write(
const void* buffer, NPT_Size bytes_to_write, NPT_Size* bytes_written = NULL);
106 NPT_Result Seek(NPT_Position offset) { NPT_COMPILER_UNUSED(offset);
return NPT_FAILURE; }
107 NPT_Result Tell(NPT_Position& offset) { NPT_COMPILER_UNUSED(offset);
return NPT_FAILURE; }
110 NPT_UdpSocket* m_Socket;
111 NPT_DataBuffer m_Buffer;
112 NPT_SocketAddress* m_Address;
115 typedef NPT_Reference<PLT_OutputDatagramStream> PLT_OutputDatagramStreamReference;
The PLT_OutputDatagramStream class is a simple buffered output stream used when writing SSDP packets ...
Definition: PltDatagramStream.h:93