RSuplNetworkServer Class Reference

class RSuplNetworkServer : public RSessionBase

This class is used by clients to forward SUPL messages received from the network. This class contains methods to establish connection to SUPL server, to forward messages received from network to SUPL server and to close connection to terminal resident SUPL server. Client should close connection to SUPL server when connection is no longer required.

Inherits from

Public Member Functions
RSuplNetworkServer ()
IMPORT_C void Close ()
IMPORT_C TInt Connect ()
IMPORT_C TInt ForwardMessage (const TDesC8 &)
IMPORT_C TVersion Version ()
Private Member Functions
void ConstructL ()
void Destruct ()
TInt StartServer ()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TAny * iReserved
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RSuplNetworkServer()

IMPORT_C RSuplNetworkServer ( )

Constructor for RSuplNetworkServer

Member Functions Documentation

Close()

IMPORT_C void Close ( )

Closes a session with the SUPL server.

Connect()

IMPORT_C TInt Connect ( )

Creates a connection with the SUPL server. If there are no other connection when this is called, the method will start the server. If client tries to connect again with the same instance before closing previous connection, it panics with panic code ESuplNWServerHandleNotClosed.

ConstructL()

void ConstructL ( ) [private]

Destruct()

void Destruct ( ) [private]

ForwardMessage(const TDesC8 &)

IMPORT_C TInt ForwardMessage ( const TDesC8 & aSuplMsg )

Forwards message to SUPL server. Before using this method, client should have established connection using Connect() method. If the connection is not established, it panics with panic code ESuplServerNWBadHandle.

Parameters

const TDesC8 & aSuplMsg

StartServer()

TInt StartServer ( ) [private, static]

Start the server process/thread which lives in an EPOCEXE object.

Version()

IMPORT_C TVersion Version ( ) const

Obtains the current version number of the SUPL Network Initiation API.

Member Data Documentation

TAny * iReserved

TAny * iReserved [private]

Unused variable for future expansion.