Platinum UPnP SDK
|
File Media Server. More...
#include <PltFileMediaServer.h>
Additional Inherited Members | |
![]() | |
PLT_DeviceHost (const char *description_path="/", const char *uuid="", const char *device_type="", const char *friendly_name="", bool show_ip=false, NPT_UInt16 port=0, bool port_rebind=false) | |
Creates a new instance of UPnP Device Host. | |
virtual NPT_Result | AddIcon (const PLT_DeviceIcon &icon, const char *fileroot, const char *urlroot="/") |
Add UPnP icon information to serve from file system. | |
virtual NPT_Result | AddIcon (const PLT_DeviceIcon &icon, const void *data, NPT_Size size, bool copy=true) |
Add UPnP icon information to serve using static image. | |
virtual NPT_UInt16 | GetPort () |
Returns the port used by the internal HTTP server for all incoming requests. | |
virtual void | SetByeByeFirst (bool bye_bye_first) |
When a UPnP device comes up, the specifications require that a SSDP bye-bye sequence is sent to force the removal of the device in case it wasn't sent properly during the last shutdown. | |
NPT_Result | SetLeaseTime (NPT_TimeInterval lease_time) |
Sets the lease time. | |
![]() | |
virtual NPT_Result | OnAction (PLT_ActionReference &action, const PLT_HttpRequestContext &context) |
This mehod is called when an action performed by a control point has been received and needs to be answered. | |
virtual NPT_Result | ProcessHttpGetRequest (NPT_HttpRequest &request, const NPT_HttpRequestContext &context, NPT_HttpResponse &response) |
This method is called when a "GET" request for a resource other than the device description, SCPD, or icons has been received. | |
virtual NPT_Result | SetupServices () |
Required method for setting up UPnP services of device host (and any embedded). | |
![]() | |
static NPT_Result | Announce (PLT_DeviceData *device, NPT_HttpRequest &request, NPT_UdpSocket &socket, bool byebye) |
Static method similar to Announce. | |
static NPT_Result | SendSsdpSearchResponse (PLT_DeviceData *device, NPT_HttpResponse &response, NPT_UdpSocket &socket, const char *st, const NPT_SocketAddress *addr=NULL) |
Static method similar to SendSsdpSearchResponse. | |
File Media Server.
The PLT_FileMediaServer class is an example of a PLT_MediaServer implementation for a file system backed Media Server.