CUpnpHttpServer Class Reference
|
class CUpnpHttpServer : public CUpnpTcpServer
|
Base class for HTTP servers. Includes HTTP specific functionality and represents the highest layer of the HTTP stack. Http Server derives from
CUpnpTcpServer
and adds HTTP related features as sending HTTP messages, queueing messages, forwarding received messages and error codes to observer layer etc. DLNAWebServer.lib
-
Since
-
Series60 2.6
Constructor & Destructor Documentation
CUpnpHttpServer(MUpnpHttpServerObserver *, MUpnpHttpServerTransactionCreator *, RSocketServ *, TInt)
First phase constructor
-
Since
-
Series60 2.6
~CUpnpHttpServer()
|
~CUpnpHttpServer
|
(
|
)
|
[virtual]
|
Virtual Destructor function.
-
Since
-
Series60 2.6
Member Functions Documentation
ConnectionAcceptedL(RSocket)
Accept the incoming connection from listening socket, creates a session and start new listening socket.
-
Since
-
Series60 2.6
Parameters
|
RSocket
aSocket
|
Socket that has received a new connection.
|
ConnectionL()
This method returns the connection handle.
-
Since
-
Series60 2.6
ConstructL()
|
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
-
Since
-
Series60 2.6
FileSession()
This method returns the file session handle.
-
Since
-
Series60 2.6
GetSession(TInt)
Returns session
-
Since
-
Series60 3.2
MessageExpiredL(CUpnpHttpMessage *)
|
void
|
MessageExpiredL
|
(
|
CUpnpHttpMessage *
|
aMessage
|
)
|
|
Callback for timer in aMessage. This gets called when timer expires and message is tried to be sent again.
-
Since
-
Series60 2.6
Parameters
|
CUpnpHttpMessage * aMessage
|
Message to be sent.
|
NewL(MUpnpHttpServerObserver *, RSocketServ *, TInt)
Constructor function.
-
Since
-
Series60 2.6
Parameters
|
MUpnpHttpServerObserver
* aObserver
|
Pointer to this HttpServer observer for callback functions.
|
|
RSocketServ
* aSocketServ
|
Pointer to Socket server.
|
|
TInt
aActiveIap
|
IAP to use with connection.
|
NewRedirection(TInt)
|
TBool
|
NewRedirection
|
(
|
TInt
|
aSessionId
|
)
|
[private]
|
Increments the counter of redirecting and check if no. of redirections is not above the limit
-
Since
-
Series60 3.2
SendMessageL(CUpnpHttpMessage *)
|
TInt
|
SendMessageL
|
(
|
CUpnpHttpMessage *
|
aMessage
|
)
|
|
Sends the message.
-
Since
-
Series60 2.6
Parameters
|
CUpnpHttpMessage * aMessage
|
Pointer to message.
|
ServerDescription()
|
TDesC8
&
|
ServerDescription
|
(
|
)
|
|
Returns Server's description string.
-
Since
-
Series60 2.6
SetTransactionCreator(MUpnpHttpServerTransactionCreator *)
This function sets handle to transaction creator interface.
-
Since
-
Series60 5.0
StartIPFilteringL()
|
IMPORT_C void
|
StartIPFilteringL
|
(
|
)
|
|
StartL(const TInt)
|
void
|
StartL
|
(
|
const
TInt
|
aPort
|
)
|
|
Starts the HttpServer.
-
Since
-
Series60 5.0
Parameters
|
const
TInt
aPort
|
HTTP make attempt to start on that port
|
Stop()
Stops the HttpServer.
-
Since
-
Series60 2.6
StopIPFiltering()
|
IMPORT_C void
|
StopIPFiltering
|
(
|
)
|
|
ToReceiveStackD(CUpnpHttpMessage *)
|
void
|
ToReceiveStackD
|
(
|
CUpnpHttpMessage *
|
aMsg
|
)
|
|
Forwards message to the upper layer.
-
Since
-
Series60 2.6
Parameters
|
CUpnpHttpMessage * aMsg
|
Pointer to message.
|
TrapSendMessageL(CUpnpHttpMessage *)
|
TInt
|
TrapSendMessageL
|
(
|
CUpnpHttpMessage *
|
aMessage
|
)
|
[private]
|
Function that is used for sending messages. Function first tries to find if message should be sent using existing session - it means that the message is response for request. If session is not found then the new one is created and the message is sent as a request.
-
Since
-
Series60 2.6
Parameters
|
CUpnpHttpMessage * aMessage
|
Message to be sent.
|
Member Data Documentation
MUpnpHttpServerObserver * iObserver
HBufC8 * iServerDescription
|
HBufC8
*
|
iServerDescription
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.