Photon Server API
Public Member Functions | Static Public Member Functions | List of all members
Photon.LoadBalancing.Common.OperationHandlerBase Class Referenceabstract

Provides basic methods for IOperationHandler implementations. More...

Inheritance diagram for Photon.LoadBalancing.Common.OperationHandlerBase:
Photon.SocketServer.Rpc.IOperationHandler Photon.LoadBalancing.Master.OperationHandler.OperationHandlerAuthenticating Photon.LoadBalancing.Master.OperationHandler.OperationHandlerDefault Photon.LoadBalancing.Master.OperationHandler.OperationHandlerInitial

Public Member Functions

virtual void OnDisconnect (PeerBase peer)
 Called by Peer.OnDisconnect. More...
 
virtual void OnDisconnectByOtherPeer (PeerBase peer)
 
abstract OperationResponse OnOperationRequest (PeerBase peer, OperationRequest operationRequest, SendParameters sendParameters)
 Called by Peer.OnOperationRequest. More...
 

Static Public Member Functions

static OperationResponse HandleInvalidOperation (Operation operation, ILogger logger)
 
static OperationResponse HandleUnknownOperationCode (OperationRequest operationRequest, ILogger logger)
 
static bool ValidateOperation (Operation operation, ILogger logger, out OperationResponse response)
 

Detailed Description

Provides basic methods for IOperationHandler implementations.

Member Function Documentation

static OperationResponse Photon.LoadBalancing.Common.OperationHandlerBase.HandleInvalidOperation ( Operation  operation,
ILogger  logger 
)
inlinestatic
static OperationResponse Photon.LoadBalancing.Common.OperationHandlerBase.HandleUnknownOperationCode ( OperationRequest  operationRequest,
ILogger  logger 
)
inlinestatic
virtual void Photon.LoadBalancing.Common.OperationHandlerBase.OnDisconnect ( PeerBase  peer)
inlinevirtual

Called by Peer.OnDisconnect.

Parameters
peerThe calling peer.

Implements Photon.SocketServer.Rpc.IOperationHandler.

virtual void Photon.LoadBalancing.Common.OperationHandlerBase.OnDisconnectByOtherPeer ( PeerBase  peer)
inlinevirtual
abstract OperationResponse Photon.LoadBalancing.Common.OperationHandlerBase.OnOperationRequest ( PeerBase  peer,
OperationRequest  operationRequest,
SendParameters  sendParameters 
)
pure virtual

Called by Peer.OnOperationRequest.

Parameters
peerThe calling peer.
operationRequestThe operation request.
sendParametersThe send Parameters.
Returns
The operation response.

Implements Photon.SocketServer.Rpc.IOperationHandler.

Implemented in Photon.LoadBalancing.Master.OperationHandler.OperationHandlerDefault, Photon.LoadBalancing.Master.OperationHandler.OperationHandlerInitial, and Photon.LoadBalancing.Master.OperationHandler.OperationHandlerAuthenticating.

static bool Photon.LoadBalancing.Common.OperationHandlerBase.ValidateOperation ( Operation  operation,
ILogger  logger,
out OperationResponse  response 
)
inlinestatic