class CObexServer : public CObex |
OBEX server.
CObexServer provides a framework for servicing OBEX requests from remote clients. It is designed to be able to act as either a "default" application (in IrDA terms, registering on the IrDA:OBEX IAS class), or as a application specific server (registering itself on a private IAS class).
You implement service-specific behaviour by providing a MObexServerNotify interface implementation to the server object. The server calls the interface's functions to provide notification of server events, which specific implementations can process (or ignore) as appropriate.
This class is not designed for user derivation.
Private Member Functions | |
---|---|
CObexServer() | |
TInt | AcceptConnection() |
TInt | AddConnectionIDHeader(CObexPacket &) |
void | CheckServerAppResponseCode(TObexOpcode, TObexResponse) |
void | CheckTarget(TConnectState &, TInt &) |
TUint32 | ConnectionID() |
void | ConstructL(TObexTransportInfo &) |
TInt | DoPacketHeaders(CObexHeaderSet *&, MObexHeaderCheck *) |
void | OnError(TInt) |
void | OnPacketReceive(CObexPacket &) |
void | OnTransportDown() |
void | OnTransportUp() |
TInt | PrepareFinalChallResponse(CObexPacket &, TConnectState &) |
void | ResetConnectionID() |
void | SetConnectionID(TUint32) |
Public Member Enumerations | |
---|---|
enum | TTargetChecking { ENoChecking, EIfPresent, EAlways } |
Inherited Enumerations | |
---|---|
CObex:TConnectState | |
CObex:TObexSuppressedAuthElements | |
CObex:TOperation |
Private Attributes | |
---|---|
TUint32 | iConnectionID |
TBool | iConnectionIdSet |
TBool | iEnabled |
CObexHeader * | iHeader |
MObexServerNotifyAsync * | iOwner |
CObexPacketSignaller * | iPacketProcessSignaller |
CObexServerRequestPacketEngine * | iServerRequestPacketEngine |
TBool | iSpecDone |
CObexServerStateMachine * | iStateMachine |
CObexServerNotifySyncWrapper * | iSyncWrapper |
TTargetChecking | iTargetChecking |
TBool | iTargetReceived |
TInt | AddConnectionIDHeader | ( | CObexPacket & | aPacket | ) | [private] |
CObexPacket & aPacket |
TBool | CheckObjectForConnectionId | ( | CObexBaseObject & | aObject | ) |
CObexBaseObject & aObject |
TBool | CheckPacketForConnectionId | ( | CObexPacket & | aObject | ) |
CObexPacket & aObject |
void | CheckServerAppResponseCode | ( | TObexOpcode | aOpcode, |
TObexResponse | aResponse | |||
) | [private] |
TObexOpcode aOpcode | |
TObexResponse aResponse |
void | CheckTarget | ( | TConnectState & | aNextState, |
TInt & | aRetVal | |||
) | [private] |
TConnectState & aNextState | |
TInt & aRetVal |
void | ConstructL | ( | TObexTransportInfo & | aObexTransportInfo | ) | [private, virtual] |
TObexTransportInfo & aObexTransportInfo |
TInt | DoPacketHeaders | ( | CObexHeaderSet *& | aHeaderSet, |
MObexHeaderCheck * | aHeaderCheck | |||
) | [private] |
CObexHeaderSet *& aHeaderSet | |
MObexHeaderCheck * aHeaderCheck |
IMPORT_C CObexServer * | NewL | ( | TObexProtocolInfo & | aObexProtocolInfoPtr | ) | [static] |
TObexProtocolInfo & aObexProtocolInfoPtr |
IMPORT_C CObexServer * | NewL | ( | TObexProtocolInfo & | aObexProtocolInfoPtr, |
TObexProtocolPolicy & | aObexProtocolPolicy | |||
) | [static] |
TObexProtocolInfo & aObexProtocolInfoPtr | |
TObexProtocolPolicy & aObexProtocolPolicy |
IMPORT_C CObexServer * | NewL | ( | TObexTransportInfo & | aObexTransportInfo | ) | [static] |
TObexTransportInfo & aObexTransportInfo |
void | OnPacketReceive | ( | CObexPacket & | aPacket | ) | [private, virtual] |
CObexPacket & aPacket |
IMPORT_C TInt | PacketHeaders | ( | CObexHeaderSet *& | aHeaderSet | ) |
CObexHeaderSet *& aHeaderSet |
IMPORT_C TInt | PacketHeaders | ( | CObexHeaderSet *& | aHeaderSet, |
MObexHeaderCheck & | aHeaderCheck | |||
) |
CObexHeaderSet *& aHeaderSet | |
MObexHeaderCheck & aHeaderCheck |
TInt | ParseConnectPacket | ( | CObexPacket & | aPacket | ) | [virtual] |
CObexPacket & aPacket |
TInt | PrepareConnectPacket | ( | CObexPacket & | aPacket | ) |
CObexPacket & aPacket |
TInt | PrepareErroredConnectPacket | ( | CObexPacket & | aPacket | ) |
CObexPacket & aPacket |
TInt | PrepareFinalChallResponse | ( | CObexPacket & | aPacket, |
TConnectState & | aNextState | |||
) | [private] |
CObexPacket & aPacket | |
TConnectState & aNextState |
IMPORT_C TInt | RequestCompleteIndicationCallback | ( | TObexResponse | aResponseCode | ) |
TObexResponse aResponseCode |
IMPORT_C TInt | RequestCompleteIndicationCallback | ( | TInt | aErrorCode | ) |
TInt aErrorCode |
IMPORT_C TInt | RequestIndicationCallback | ( | CObexBaseObject * | aObject | ) |
CObexBaseObject * aObject |
IMPORT_C TInt | RequestIndicationCallbackWithError | ( | TObexResponse | aResponseCode | ) |
TObexResponse aResponseCode |
IMPORT_C TInt | RequestIndicationCallbackWithError | ( | TInt | aErrorCode | ) |
TInt aErrorCode |
IMPORT_C void | SetChallengeL | ( | const TDesC & | aPassword | ) |
const TDesC & aPassword |
void | SetConnectionID | ( | TUint32 | aConnectionID | ) | [private] |
TUint32 aConnectionID |
void | SetCurrentOperation | ( | const TOperation | aOperation | ) |
const TOperation aOperation |
IMPORT_C TInt | SetPutFinalResponseHeaders | ( | CObexHeaderSet * | aHeaderSet | ) |
CObexHeaderSet * aHeaderSet |
IMPORT_C void | SetReadActivityObserver | ( | MObexReadActivityObserver * | aObserver | ) |
MObexReadActivityObserver * aObserver |
IMPORT_C void | SetTargetChecking | ( | TTargetChecking | aChecking | ) |
TTargetChecking aChecking |
IMPORT_C TInt | Start | ( | MObexServerNotify * | aOwner | ) |
MObexServerNotify * aOwner |
IMPORT_C TInt | Start | ( | MObexServerNotifyAsync * | aOwner | ) |
MObexServerNotifyAsync * aOwner |
IMPORT_C void | UserPasswordL | ( | const TDesC & | aPassword | ) | [virtual] |
const TDesC & aPassword |
The target header checking to apply to incoming connection requests. Defaults to EIfPresent. CObexServer::SetTargetChecking
ENoChecking | |
EIfPresent |
Allow all target headers to connect. |
EAlways |
Only check target header in response to receiving one. Allows all clients specifying an Inbox service to connect. |
CObexPacketSignaller * | iPacketProcessSignaller | [private] |