Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

PhotonWire.Server.ServerToServer

neuecc edited this page May 30, 2016 · 1 revision

FailedSendOperationException

public class PhotonWire.Server.ServerToServer.FailedSendOperationException
    : Exception, ISerializable, _Exception

Properties

Type Name Summary
OperationResponse OperationResponse

GroupInvoker<T>

public class PhotonWire.Server.ServerToServer.GroupInvoker<T>

Methods

Type Name Summary
Task<GroupInvokeResponse1[]>` Invoke(Func<T, Task<TR>> invoke)
Task<GroupInvokeResponse[]> Invoke(Func<T, Task> invoke)

GroupInvokeResponse

public class PhotonWire.Server.ServerToServer.GroupInvokeResponse

Properties

Type Name Summary
IPhotonWirePeer Peer

GroupInvokeResponse<T>

public class PhotonWire.Server.ServerToServer.GroupInvokeResponse<T>

Properties

Type Name Summary
IPhotonWirePeer Peer
T Result

IServerHub

public interface PhotonWire.Server.ServerToServer.IServerHub
    : IPhotonWireHub

IServerHubContext

public interface PhotonWire.Server.ServerToServer.IServerHubContext

Properties

Type Name Summary
HubDescriptor Hub
SendParameters SendParameters

Methods

Type Name Summary
Task SendOperationRequestAsync(IS2SPhotonWirePeer peer, Byte methodOpCode, Object[] arguments)
Task<T> SendOperationRequestAsync(IS2SPhotonWirePeer peer, Byte methodOpCode, Object[] arguments)

PhotonWireInboundS2SPeer

public class PhotonWire.Server.ServerToServer.PhotonWireInboundS2SPeer
    : InboundS2SPeer, IDisposable, IManagedPeer, IS2SPhotonWirePeer, IPhotonWirePeer

Properties

Type Name Summary
ConcurrentDictionary<Object, Object> Items
PeerBase PeerBase
PeerKind PeerKind

Methods

Type Name Summary
void OnDisconnect(DisconnectReason reasonCode, String reasonDetail)
void OnEvent(IEventData eventData, SendParameters sendParameters)
void OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters)
void OnOperationResponse(OperationResponse operationResponse, SendParameters sendParameters)
IDisposable RegisterDisconnectAction(Action<Int32, String> action)
Task<OperationResponse> SendOperationRequestAsync(Byte operationCode, Dictionary<Byte, Object> parameters, SendParameters sendParameters)

PhotonWireOutboundS2SPeer

public class PhotonWire.Server.ServerToServer.PhotonWireOutboundS2SPeer
    : OutboundS2SPeer, IDisposable, IManagedPeer, IS2SPhotonWirePeer, IPhotonWirePeer

Properties

Type Name Summary
String ApplicationName
ConcurrentDictionary<Object, Object> Items
PeerBase PeerBase
PeerKind PeerKind
IPEndPoint RemoteEndPoint

Methods

Type Name Summary
Task<Boolean> ConnectTcpAsync(IPEndPoint remoteEndPoint, String applicationName, Boolean useMux = False, IRpcProtocol protocol = null)
Task<Boolean> ConnectTcpAsync(IPEndPoint remoteEndPoint, String applicationName, Object customInitObject, Boolean useMux = False, IRpcProtocol protocol = null)
void OnConnectionEstablished(Object responseObject)
void OnConnectionEstablishedCore(Object responseObject)
void OnConnectionFailed(Int32 errorCode, String errorMessage)
void OnConnectionFailedCore(Int32 errorCode, String errorMessage)
void OnDisconnect(DisconnectReason reasonCode, String reasonDetail)
void OnEvent(IEventData eventData, SendParameters sendParameters)
void OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters)
void OnOperationResponse(OperationResponse operationResponse, SendParameters sendParameters)
IDisposable RegisterDisconnectAction(Action<Int32, String> action)
Task<OperationResponse> SendOperationRequestAsync(Byte operationCode, Dictionary<Byte, Object> parameters, SendParameters sendParameters)

ReceiveServerHub

public abstract class PhotonWire.Server.ServerToServer.ReceiveServerHub
    : IServerHub, IPhotonWireHub

Properties

Type Name Summary
OperationContext Context

Methods

Type Name Summary
HubClientProxy<TClient> GetClientsProxy()
HubClientProxy<TClient> GetClientsProxy(SendParameters sendParameters)
ServerHubCallerClientProxy<T> GetServerHubProxy()

ReceiveServerHub<THub, TClient>

Generics Helper for use ClientPeers(set default pair of Hub and Client type proxy)

public abstract class PhotonWire.Server.ServerToServer.ReceiveServerHub<THub, TClient>
    : ReceiveServerHub, IServerHub, IPhotonWireHub

Properties

Type Name Summary
HubClientProxy<TClient> Clients Client Proxy of peers.

ServerHub

public abstract class PhotonWire.Server.ServerToServer.ServerHub
    : IServerHub, IPhotonWireHub

Properties

Type Name Summary
OperationContext Context

Methods

Type Name Summary
ServerHubCallerClientProxy<T> GetReceiveServerHubProxy()

ServerHubCallerClientProxy<T>

public class PhotonWire.Server.ServerToServer.ServerHubCallerClientProxy<T>
    : ServerHubClientProxy<T>

Properties

Type Name Summary
T Caller Broadcast to caller client.
GroupInvoker<T> Others Broadcast to all(in current gameserver) except caller client.

ServerHubClientProxy<T>

public class PhotonWire.Server.ServerToServer.ServerHubClientProxy<T>

Fields

Type Name Summary
IServerHubContext context

Properties

Type Name Summary
GroupInvoker<T> All Broadcast to all(in current gameserver) client.
T RandomOne Broadcast to single(in current gameserver) client, target peer is All[Random()].
T Single Broadcast to single(in current gameserver) client, target peer is All.First().

Methods

Type Name Summary
GroupInvoker<T> AllExcept(IPhotonWirePeer[] excludePeers) Broadcast to all(in current gameserver) except exclude peers.
PeerManager GetPeerManager()
GroupInvoker<T> Group(String groupName, IPhotonWirePeer[] excludePeers) Broadcast to target group(in current gameserver) except exclude peers.
GroupInvoker<T> Groups(IEnumerable<String> groupNames, IPhotonWirePeer[] excludePeers) Broadcast to target groups(in current gameserver) except exclude peers.
GroupInvoker<T> OthersInGroup(String groupName) Broadcast to all(in current gameserver) except exclude group.
GroupInvoker<T> OthersInGroups(IEnumerable<String> groupNames) Broadcast to all(in current gameserver) except exclude groups.
T Target(IPhotonWirePeer peer) Broadcast to target(in current gameserver) client.
GroupInvoker<T> Targets(IEnumerable<IPhotonWirePeer> peers) Broadcast to target(in current gameserver) clients.

ServerHubContext<T>

public class PhotonWire.Server.ServerToServer.ServerHubContext<T>
    : IServerHubContext

Properties

Type Name Summary
HubDescriptor Hub
ServerHubClientProxy<T> Peers
SendParameters SendParameters

ServerResponseErrorException

public class PhotonWire.Server.ServerToServer.ServerResponseErrorException
    : Exception, ISerializable, _Exception

Properties

Type Name Summary
String DebugMessage
Int16 ReturnCode

TypedServerHubClientBuilder<T>

public class PhotonWire.Server.ServerToServer.TypedServerHubClientBuilder<T>

Static Methods

Type Name Summary
T Build(IServerHubContext context, IS2SPhotonWirePeer peer)