|
PTLib
Version 2.14.3
|
Simple Service Discovery Protocol. More...
#include <ssdp.h>


Public Types | |
| enum | Commands { M_SEARCH = PHTTP::NumCommands, NOTIFY, NumCommands } |
Public Types inherited from PHTTP | |
| enum | Commands { GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, NumCommands } |
| enum | StatusCode { BadResponse = 1, ContentProcessorError, UnknownTransferEncoding, Continue = 100, SwitchingProtocols, RequestOK = 200, Created, Accepted, NonAuthoritativeInformation, NoContent, ResetContent, PartialContent, MultipleChoices = 300, MovedPermanently, MovedTemporarily, SeeOther, NotModified, UseProxy, BadRequest = 400, UnAuthorised, PaymentRequired, Forbidden, NotFound, MethodNotAllowed, NoneAcceptable, ProxyAuthenticationRequired, RequestTimeout, Conflict, Gone, LengthRequired, UnlessTrue, InternalServerError = 500, NotImplemented, BadGateway, ServiceUnavailable, GatewayTimeout } |
Public Member Functions | |
| PSSDP () | |
| Create a TCP/IP HTTP protocol channel. More... | |
| bool | Listen () |
| Listen for service notifications. More... | |
| bool | Search (const PString &urn, PMIMEInfo &reply) |
| Search for device with the specified URN. More... | |
| bool | GetNotify (PMIMEInfo &mime, const PString &urnRegex=".*") |
| Read a notification. More... | |
Protected Member Functions | |
| bool | Close () |
| Close the channel. More... | |
Protected Member Functions inherited from PHTTP | |
| PHTTP () | |
| Create a TCP/IP HTTP protocol channel. More... | |
| PHTTP (const char *defaultServiceName) | |
| virtual PINDEX | ParseResponse (const PString &line) |
| Parse a response line string into a response code and any extra info on the line. More... | |
Protected Member Functions inherited from PInternetProtocol | |
| PInternetProtocol (const char *defaultServiceName, PINDEX cmdCount, char const *const *cmdNames) | |
Protected Member Functions inherited from PIndirectChannel | |
| virtual PBoolean | OnOpen () |
| This callback is executed when the Open() function is called with open channels. More... | |
Protected Member Functions inherited from PChannel | |
| PChannel (const PChannel &) | |
| PChannel & | operator= (const PChannel &) |
| virtual PBoolean | ConvertOSError (P_INT_PTR libcReturnValue, ErrorGroup group=LastGeneralError) |
| Convert an operating system error into platform independent error. More... | |
| int | ReadCharWithTimeout (PTimeInterval &timeout) |
| Read a character with specified timeout. More... | |
| PBoolean | ReceiveCommandString (int nextChar, const PString &reply, PINDEX &pos, PINDEX start) |
| virtual int | os_errno () const |
| PBoolean | PXSetIOBlock (PXBlockType type, const PTimeInterval &timeout) |
| P_INT_PTR | GetOSHandleAsInt () const |
| int | PXClose () |
| PChannel () | |
| Create the channel. More... | |
Protected Member Functions inherited from PObject | |
| PObject () | |
| Constructor for PObject, made protected so cannot ever create one on its own. More... | |
Protected Attributes | |
| bool | m_listening |
Additional Inherited Members | |
Protected Types inherited from PInternetProtocol | |
| enum | StuffState { DontStuff, StuffIdle, StuffCR, StuffCRLF, StuffCRLFdot, StuffCRLFdotCR } |
Friends inherited from PObject | |
Simple Service Discovery Protocol.
| enum PSSDP::Commands |
| PSSDP::PSSDP | ( | ) |
Create a TCP/IP HTTP protocol channel.
|
protectedvirtual |
Close the channel.
This will detach itself from the read and write channels and delete both of them if they are auto delete.
Reimplemented from PIndirectChannel.
| bool PSSDP::Listen | ( | ) |
Listen for service notifications.
|
static |
|
static |
|
static |
Search for device with the specified URN.
Note that the Listen() must not have been called for this function to work correctly.
| urn | Resource identfier to search for |
| reply | MIME for the reply |
|
static |
|
static |
|
protected |