Photon Server API Documentation v5.0RC1

Public Member Functions | List of all members
Photon.SocketServer.Rpc.IOperationHandler Interface Reference

Peer.CurrentOperationHandler is an IOperationHandler. The implementor handles incoming OperationRequests (Peer.OnOperationRequest, peer disconnects (Peer.OnDisconnect) and disconnects that are invoked from other peers (Peer.OnDisconnectByOtherPeer). More...

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

Public Member Functions

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

Detailed Description

Peer.CurrentOperationHandler is an IOperationHandler. The implementor handles incoming OperationRequests (Peer.OnOperationRequest, peer disconnects (Peer.OnDisconnect) and disconnects that are invoked from other peers (Peer.OnDisconnectByOtherPeer).

Member Function Documentation

◆ OnDisconnect()

void Photon.SocketServer.Rpc.IOperationHandler.OnDisconnect ( PeerBase  peer)

Called by Peer.OnDisconnect.

Parameters
peerThe calling peer.

Implemented in Photon.LoadBalancing.Common.OperationHandlerBase.

◆ OnOperationRequest()

OperationResponse Photon.SocketServer.Rpc.IOperationHandler.OnOperationRequest ( PeerBase  peer,
OperationRequest  operationRequest,
SendParameters  sendParameters 
)

Called by Peer.OnOperationRequest.

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

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