C# Class PhotonWire.Server.ServerToServer.PhotonWireOutboundS2SPeer

Inheritance: OutboundS2SPeer, IS2SPhotonWirePeer
Datei anzeigen Open project: neuecc/PhotonWire Class Usage Examples

Public Methods

Method Description
ConnectTcpAsync ( IPEndPoint remoteEndPoint, string applicationName, bool useMux = false, IRpcProtocol protocol = null ) : Task
ConnectTcpAsync ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, bool useMux = false, IRpcProtocol protocol = null ) : Task
PhotonWireOutboundS2SPeer ( Photon.SocketServer.ApplicationBase application ) : System
RegisterDisconnectAction ( string>.Action action ) : IDisposable
SendOperationRequestAsync ( byte operationCode, object>.Dictionary parameters, SendParameters sendParameters ) : Task

Protected Methods

Method Description
OnConnectionEstablished ( object responseObject ) : void
OnConnectionEstablishedCore ( object responseObject ) : void
OnConnectionFailed ( int errorCode, string errorMessage ) : void
OnConnectionFailedCore ( int 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 ) : void

Private Methods

Method Description
ConnectTcp ( IPEndPoint remoteEndPoint, string applicationName, bool useMux = false, IRpcProtocol protocol = null ) : bool
ConnectTcp ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, bool useMux = false, IRpcProtocol protocol = null ) : bool
ConnectToServerUdp ( IPEndPoint remoteEndPoint, string applicationName, byte numChannels, short mtu ) : bool
ConnectToServerUdp ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, byte numChannels, short mtu ) : bool
ConnectToServerWebSocket ( IPEndPoint remoteEndPoint, string applicationName, WebSocketVersion webSocketVersion, IRpcProtocol protocol ) : bool
ConnectToServerWebSocket ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, WebSocketVersion webSocketVersion, IRpcProtocol protocol ) : bool
ConnectToServerWebSocketHixie76 ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, string origin ) : bool
ConnectToServerWebSocketHixie76 ( IPEndPoint remoteEndPoint, string applicationName, string origin ) : bool
IssueOperationResponseFuture ( int messageId ) : TaskCompletionSource
TryGetAndRemoveFuture ( int messageId, TaskCompletionSource &future ) : bool

Method Details

ConnectTcpAsync() public method

public ConnectTcpAsync ( IPEndPoint remoteEndPoint, string applicationName, bool useMux = false, IRpcProtocol protocol = null ) : Task
remoteEndPoint System.Net.IPEndPoint
applicationName string
useMux bool
protocol IRpcProtocol
return Task

ConnectTcpAsync() public method

public ConnectTcpAsync ( IPEndPoint remoteEndPoint, string applicationName, object customInitObject, bool useMux = false, IRpcProtocol protocol = null ) : Task
remoteEndPoint System.Net.IPEndPoint
applicationName string
customInitObject object
useMux bool
protocol IRpcProtocol
return Task

OnConnectionEstablished() protected final method

protected final OnConnectionEstablished ( object responseObject ) : void
responseObject object
return void

OnConnectionEstablishedCore() protected method

protected OnConnectionEstablishedCore ( object responseObject ) : void
responseObject object
return void

OnConnectionFailed() protected final method

protected final OnConnectionFailed ( int errorCode, string errorMessage ) : void
errorCode int
errorMessage string
return void

OnConnectionFailedCore() protected method

protected OnConnectionFailedCore ( int errorCode, string errorMessage ) : void
errorCode int
errorMessage string
return void

OnDisconnect() protected method

protected OnDisconnect ( DisconnectReason reasonCode, string reasonDetail ) : void
reasonCode DisconnectReason
reasonDetail string
return void

OnEvent() protected method

protected OnEvent ( IEventData eventData, SendParameters sendParameters ) : void
eventData IEventData
sendParameters SendParameters
return void

OnOperationRequest() protected method

protected OnOperationRequest ( OperationRequest operationRequest, SendParameters sendParameters ) : void
operationRequest OperationRequest
sendParameters SendParameters
return void

OnOperationResponse() protected method

protected OnOperationResponse ( OperationResponse operationResponse, SendParameters sendParameters ) : void
operationResponse OperationResponse
sendParameters SendParameters
return void

PhotonWireOutboundS2SPeer() public method

public PhotonWireOutboundS2SPeer ( Photon.SocketServer.ApplicationBase application ) : System
application Photon.SocketServer.ApplicationBase
return System

RegisterDisconnectAction() public method

public RegisterDisconnectAction ( string>.Action action ) : IDisposable
action string>.Action
return IDisposable

SendOperationRequestAsync() public method

public SendOperationRequestAsync ( byte operationCode, object>.Dictionary parameters, SendParameters sendParameters ) : Task
operationCode byte
parameters object>.Dictionary
sendParameters SendParameters
return Task