CUpnpSsdpMessage Class Reference

class CUpnpSsdpMessage : public CUpnpHttpMessage

Ssdp-Message class. Used in sending and handling Ssdp messages.

Since
Series60 2.0

Inherits from

Public Member Functions
~CUpnpSsdpMessage()
voidAddCacheControlL(TDesC8 &)
IMPORT_C voidAddHostL(TDesC8 &)
voidAddLocationL(TDesC8 &)
IMPORT_C voidAddMxL(TDesC8 &)
voidAddNotificationTypeL(TDesC8 &)
voidAddSearchTargetStringL(TDesC8 &)
voidAddServerL(TDesC8 &)
voidAddUsnL(TDesC8 &)
IMPORT_C TIntCacheControl()
IMPORT_C TBoolIsSearchAll()
IMPORT_C TBoolIsSearchDevice()
IMPORT_C TBoolIsSearchService()
IMPORT_C TBoolIsSsdpAlive()
IMPORT_C TBoolIsSsdpByebye()
IMPORT_C TBoolIsSsdpMSearch()
IMPORT_C TBoolIsSsdpNotify()
IMPORT_C TBoolIsSsdpResponse()
IMPORT_C TDesC8 &Location()
IMPORT_C CUpnpSsdpMessage *NewL(TInetAddr &, TRequestType)
IMPORT_C CUpnpSsdpMessage *NewL(TRequestType)
IMPORT_C CUpnpSsdpMessage *NewL(TDesC8 &, TInetAddr &)
IMPORT_C TDesC8 &Nt()
IMPORT_C TDesC8 &Nts()
IMPORT_C TIntSearchTarget()
IMPORT_C TDesC8 &St()
HBufC8 *ToStringL()
IMPORT_C TDesC8 &Usn()
IMPORT_C TPtr8Uuid()
Protected Member Functions
IMPORT_C voidAppendContentLengthToHeadersL(HBufC8 *&)
Private Member Functions
CUpnpSsdpMessage()
voidConstructL(TRequestType)
voidHttpConstructL(TInetAddr &)
voidParseL(TDesC8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CUpnpHttpMessage::AddPairL(const TDesC8 &,const TDesC8 &)
CUpnpHttpMessage::AddrInput(TInetAddr &,const TDesC8 &)
CUpnpHttpMessage::AddrOutput(const TInetAddr &,TDes8 &)
CUpnpHttpMessage::Body()
CUpnpHttpMessage::BodyLength()const
CUpnpHttpMessage::CUpnpHttpMessage()
CUpnpHttpMessage::CancelMessageTimeout()
CUpnpHttpMessage::ClientRequest()
CUpnpHttpMessage::ConstructL()
CUpnpHttpMessage::ConstructL(TInetAddr &,TInt)
CUpnpHttpMessage::DestinationPath()
CUpnpHttpMessage::DevicePath()
CUpnpHttpMessage::Error()
CUpnpHttpMessage::FindLWS(const TDesC8 &)
CUpnpHttpMessage::FoldHeaderL(HBufC8 *&)
CUpnpHttpMessage::GetHeaderValue(const TDesC8 &)
CUpnpHttpMessage::HeaderList()
CUpnpHttpMessage::HeadersToStringL()
CUpnpHttpMessage::HttpError(THttpStatusCode)
CUpnpHttpMessage::HttpPriority()
CUpnpHttpMessage::InFilename()
CUpnpHttpMessage::InternalError()
CUpnpHttpMessage::Is1xx()
CUpnpHttpMessage::Is2xx()
CUpnpHttpMessage::Is3xx()
CUpnpHttpMessage::IsGena()
CUpnpHttpMessage::IsHeader(const TDesC8 &,TBool &)
CUpnpHttpMessage::IsSoap()const
CUpnpHttpMessage::Length()
CUpnpHttpMessage::Local()
CUpnpHttpMessage::Method()
CUpnpHttpMessage::NewL()
CUpnpHttpMessage::NewL(TDesC8 &,TInetAddr)
CUpnpHttpMessage::NewL(TDesC8 &,const TInetAddr &,TInt)
CUpnpHttpMessage::NewL(TInetAddr,TInt)
CUpnpHttpMessage::NewL(const TInetAddr &)
CUpnpHttpMessage::NewSessionIdL()
CUpnpHttpMessage::Offset()
CUpnpHttpMessage::OutFilename()
CUpnpHttpMessage::OutUri()
CUpnpHttpMessage::OverwriteExisting()
CUpnpHttpMessage::ParseHeaderRowL(const TDesC8 &,TBool)
CUpnpHttpMessage::PendingRequest()
CUpnpHttpMessage::Receiver()
CUpnpHttpMessage::RemovePairL(const TDesC8 &)
CUpnpHttpMessage::RequestHTTPVersion()
CUpnpHttpMessage::RetryCounter()
CUpnpHttpMessage::SaveAtOffset()
CUpnpHttpMessage::Sender()
CUpnpHttpMessage::SenderPath()
CUpnpHttpMessage::SenderPathFromHeader()
CUpnpHttpMessage::ServicePath()const
CUpnpHttpMessage::SessionId()const
CUpnpHttpMessage::SessionIdMatch(const CUpnpHttpMessage &,const CUpnpHttpMessage &)
CUpnpHttpMessage::SetBodyL(const TDesC8 &)
CUpnpHttpMessage::SetClientRequest(TBool)
CUpnpHttpMessage::SetDestinationPathL(const TDesC8 &)
CUpnpHttpMessage::SetHttpPriority(TThreadPriority)
CUpnpHttpMessage::SetInFilenameL(const TDesC8 &,TBool)
CUpnpHttpMessage::SetInternalError(TInt)
CUpnpHttpMessage::SetLocal(TBool)
CUpnpHttpMessage::SetMessageDateL(const TTime &)
CUpnpHttpMessage::SetMessageTimeoutL(MUpnpMessageObserver *,const TInt)
CUpnpHttpMessage::SetOutFilenameL(const TDesC8 &)
CUpnpHttpMessage::SetOutUriL(const TDesC8 &)
CUpnpHttpMessage::SetPendingRequest(TAny *)
CUpnpHttpMessage::SetRangeL(TInt,TInt,TBool)
CUpnpHttpMessage::SetRetryCounter(TInt)
CUpnpHttpMessage::SetSenderPathL(const TDesC8 &)
CUpnpHttpMessage::SetSessionId(TInt)
CUpnpHttpMessage::SetTcpTimeout(TInt)
CUpnpHttpMessage::SetType(THTTPMsgType)
CUpnpHttpMessage::TcpTimeout()
CUpnpHttpMessage::TimerEventL(CUpnpNotifyTimer *)
CUpnpHttpMessage::Type()const
CUpnpHttpMessage::UnFoldHeader(HBufC8 *&)
CUpnpHttpMessage::UpnpError(TUpnpErrorCode)
CUpnpHttpMessage::UpnpErrorL(TUpnpErrorCode)
CUpnpHttpMessage::~CUpnpHttpMessage()
Public Member Enumerations
enumTRequestType { ERequestNotify = 1, ERequestByeBye, ERequestSearch, ERequestSearchResponse, ERequestUndefined }
enumTSearchTarget {
ESsdpNone = 1, ESsdpAll, EUPnPRootDevice, EDeviceUid, EDeviceType, EServiceType
}
Inherited Attributes
CUpnpHttpMessage::iClientRequest
CUpnpHttpMessage::iDestinationPath
CUpnpHttpMessage::iHeaderList
CUpnpHttpMessage::iInFilename
CUpnpHttpMessage::iInternalError
CUpnpHttpMessage::iLength
CUpnpHttpMessage::iLocal
CUpnpHttpMessage::iMessageObserver
CUpnpHttpMessage::iOffset
CUpnpHttpMessage::iOutFilename
CUpnpHttpMessage::iOutUri
CUpnpHttpMessage::iOverwriteExisting
CUpnpHttpMessage::iPendingRequest
CUpnpHttpMessage::iRemoteHost
CUpnpHttpMessage::iRetryCounter
CUpnpHttpMessage::iSaveAtOffset
CUpnpHttpMessage::iSenderPath
CUpnpHttpMessage::iSessionId
CUpnpHttpMessage::iSessionPriority
CUpnpHttpMessage::iTcpTimeout
CUpnpHttpMessage::iTextBody
CUpnpHttpMessage::iTimer
CUpnpHttpMessage::iType

Constructor & Destructor Documentation

CUpnpSsdpMessage()

CUpnpSsdpMessage()[private]

C++ default constructor.

~CUpnpSsdpMessage()

IMPORT_C~CUpnpSsdpMessage()

Destructor.

Member Functions Documentation

AddCacheControlL(TDesC8 &)

voidAddCacheControlL(TDesC8 &aMaxAge)
Sets the Cache-control-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aMaxAgeValue of Cache-Control to be set.

AddHostL(TDesC8 &)

IMPORT_C voidAddHostL(TDesC8 &aHost)
Sets the host-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aHostValue of host to be set.

AddLocationL(TDesC8 &)

voidAddLocationL(TDesC8 &aDescriptionLocation)
Sets the Description-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aDescriptionLocationValue of description to be set.

AddMxL(TDesC8 &)

IMPORT_C voidAddMxL(TDesC8 &aMx)
Sets the MX-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aMxValue of MX to be set.

AddNotificationTypeL(TDesC8 &)

voidAddNotificationTypeL(TDesC8 &aNT)
Sets the NT-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aNTValue of NT to be set.

AddSearchTargetStringL(TDesC8 &)

voidAddSearchTargetStringL(TDesC8 &aSt)
Sets the ST-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aStValue of ST to be set.

AddServerL(TDesC8 &)

voidAddServerL(TDesC8 &aServerType)
Sets the Server description-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aServerTypeValue of server description to be set.

AddUsnL(TDesC8 &)

voidAddUsnL(TDesC8 &aUsn)
Sets the USN-header of Ssdp message.
Since
Series60 2.0

Parameters

TDesC8 & aUsnValue of USN to be set.

AppendContentLengthToHeadersL(HBufC8 *&)

IMPORT_C voidAppendContentLengthToHeadersL(HBufC8 *&aHeaders)[protected, virtual]

Append ContentLength when headers are dumped to string (using public method HeadersToStringL)

Parameters

HBufC8 *& aHeaderswithout "Content-Length"

CacheControl()

IMPORT_C TIntCacheControl()
Cache control.
Since
Series60 2.0

ConstructL(TRequestType)

voidConstructL(TRequestTypeaRequestType)[private]

By default Symbian 2nd phase constructor is private.

Parameters

TRequestType aRequestTypeType of message to be constructed.

HttpConstructL(TInetAddr &)

voidHttpConstructL(TInetAddr &aAddr)[private]

By default Symbian 2nd phase constructor is private.

Parameters

TInetAddr & aAddrRemote IP address

IsSearchAll()

IMPORT_C TBoolIsSearchAll()
Return if search all.
Since
Series60 2.0

IsSearchDevice()

IMPORT_C TBoolIsSearchDevice()
Return if search device.
Since
Series60 2.0

IsSearchService()

IMPORT_C TBoolIsSearchService()
Return if search service.
Since
Series60 2.0

IsSsdpAlive()

IMPORT_C TBoolIsSsdpAlive()
Returns ETrue, if message is a Alive-message, else returns EFalse.
Since
Series60 2.0

IsSsdpByebye()

IMPORT_C TBoolIsSsdpByebye()
Returns ETrue, if message is a Byebye-message, else returns EFalse.
Since
Series60 2.0

IsSsdpMSearch()

IMPORT_C TBoolIsSsdpMSearch()
Returns ETrue, if message is a search message, else returns EFalse.
Since
Series60 2.0

IsSsdpNotify()

IMPORT_C TBoolIsSsdpNotify()
Returns if SSDP notify.
Since
Series60 2.0

IsSsdpResponse()

IMPORT_C TBoolIsSsdpResponse()
Return if SSDP response.
Since
Series60 2.0

Location()

IMPORT_C TDesC8 &Location()
Return location
Since
Series60 2.0

NewL(TInetAddr &, TRequestType)

IMPORT_C CUpnpSsdpMessage *NewL(TInetAddr &aAddr,
TRequestTypeaRequestType
)[static]

Two-phased constructor.

Parameters

TInetAddr & aAddrSender's IP address.
TRequestType aRequestTypeType of message to be constructed.

NewL(TRequestType)

IMPORT_C CUpnpSsdpMessage *NewL(TRequestTypeaRequestType)[static]

Two-phased constructor.

Parameters

TRequestType aRequestTypeType of message to be constructed.

NewL(TDesC8 &, TInetAddr &)

IMPORT_C CUpnpSsdpMessage *NewL(TDesC8 &aBuffer,
TInetAddr &aAddr
)[static]

Two-phased constructor.

Parameters

TDesC8 & aBufferBuffer which contains the message.
TInetAddr & aAddrTarget IP address.

Nt()

IMPORT_C TDesC8 &Nt()
Returns NT-header of Ssdp message.
Since
Series60 2.0

Nts()

IMPORT_C TDesC8 &Nts()
Returns NTS-header of Ssdp message.
Since
Series60 2.0

ParseL(TDesC8 &)

voidParseL(TDesC8 &aBuffer)[private, virtual]
Parse buffer.
Since
Series60 2.0

Parameters

TDesC8 & aBufferbuffer to be parsed.

SearchTarget()

IMPORT_C TIntSearchTarget()
Search target.
Since
Series60 2.0

St()

IMPORT_C TDesC8 &St()
Returns ST-header of Ssdp message.
Since
Series60 2.0

ToStringL()

HBufC8 *ToStringL()[virtual]
Buffer to string.
Since
Series60 2.0

Usn()

IMPORT_C TDesC8 &Usn()
Returns USN-header of Ssdp message.
Since
Series60 2.0

Uuid()

IMPORT_C TPtr8Uuid()
Return UUID
Since
Series60 2.0

Member Enumerations Documentation

Enum TRequestType

Enumeration for message types:

Enumerators

ERequestNotify = 1
ERequestByeBye
ERequestSearch
ERequestSearchResponse
ERequestUndefined

Enum TSearchTarget

Enumeration for search message types:
Since
Series60 2.0

Enumerators

ESsdpNone = 1
ESsdpAll
EUPnPRootDevice
EDeviceUid
EDeviceType
EServiceType