Platinum UPnP SDK  1.0.5.13
Protected Member Functions | Friends | List of all members
PLT_HttpClientSocketTask Class Reference

The PLT_HttpClientSocketTask class is the base class used to send a HTTP request asynchronously using a task (thread). More...

#include <PltHttpClientTask.h>

Inheritance diagram for PLT_HttpClientSocketTask:
PLT_ThreadTask PLT_CtrlPointGetDescriptionTask PLT_CtrlPointGetSCPDsTask PLT_CtrlPointInvokeActionTask PLT_CtrlPointSubscribeEventTask PLT_HttpClientTask< T >

Protected Member Functions

virtual void DoAbort ()
 This method to override in derived classes is called when the task is about to stop. More...
 
virtual void DoRun ()
 This method to override in derived classes is the main task loop. More...
 
- Protected Member Functions inherited from PLT_ThreadTask
 PLT_ThreadTask ()
 A PLT_ThreadTask base class is never instantiated directly. More...
 
virtual ~PLT_ThreadTask ()
 The task manager will destroy the task when finished if m_AutoDestroy is true otherwise the owner of this task must use the Kill method. More...
 
virtual void DoInit ()
 This method to override in derived classes is called when the task is about to start. More...
 
virtual bool IsAborting (NPT_Timeout timeout)
 Return whether this task is in the process of stopping. More...
 
NPT_Result Start (PLT_TaskManager *task_manager=NULL, NPT_TimeInterval *delay=NULL, bool auto_destroy=true)
 Start a task by associating it with a task manager. More...
 
NPT_Result Stop (bool blocking=true)
 Stop the task. More...
 

Friends

class PLT_ThreadTask
 

Additional Inherited Members

- Public Member Functions inherited from PLT_ThreadTask
NPT_Result Kill ()
 When a task is not managed by a PLT_TaskManager, the owner must call this to stop and destroy it. More...
 

Detailed Description

The PLT_HttpClientSocketTask class is the base class used to send a HTTP request asynchronously using a task (thread).

It supports persistent connections and HTTP pipelining with automatic fallback and reconnection when HTTP 1.0 is used.

Member Function Documentation

virtual void PLT_HttpClientSocketTask::DoAbort ( )
protectedvirtual

This method to override in derived classes is called when the task is about to stop.

Reimplemented from PLT_ThreadTask.

virtual void PLT_HttpClientSocketTask::DoRun ( )
protectedvirtual

This method to override in derived classes is the main task loop.

Reimplemented from PLT_ThreadTask.


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