Photon Server API
Public Member Functions | Properties | Events | List of all members
Photon.Hive.Tests.Client.TestClient Class Reference

The test client. More...

Inheritance diagram for Photon.Hive.Tests.Client.TestClient:

Public Member Functions

 TestClient (bool useTcp)
 Initializes a new instance of the TestClient class. More...
 
void Close ()
 The close. More...
 
void Connect (string hostName, int port, string applicationId)
 The connect. More...
 
void SendOperationRequest (OperationRequest operationRequest)
 The send operation request. More...
 
void SendOperationRequests (OperationRequest[] operationRequests)
 Sends a couple of operation requests. More...
 
bool WaitForConnect (int millisecondsWaitTime)
 The wait for connect. More...
 
EventData WaitForEvent (int millisecodsWaitTime)
 The wait for event. More...
 
OperationResponse WaitForOperationResponse (int millisecodsWaitTime)
 The wait for operation response. More...
 
void Dispose ()
 The dispose. More...
 
void DebugReturn (DebugLevel debugLevel, string debug)
 The debug return. More...
 
void OnEvent (ExitGames.Client.Photon.EventData @event)
 
void OnOperationResponse (ExitGames.Client.Photon.OperationResponse operationResponse)
 
void OnStatusChanged (StatusCode returnCode)
 
void OnMessage (object message)
 

Properties

PhotonPeer PhotonClient [get]
 Gets the underling PhotonClient. More...
 

Events

static Action< TestClientConnected
 The connected. More...
 
static Action< TestClientDisonnected
 The disconnected. More...
 
static Action< TestClient, EventDataEventReceived
 The event received. More...
 
static Action< TestClient, OperationResponseResponseReceived
 The response received. More...
 

Detailed Description

The test client.

Constructor & Destructor Documentation

Photon.Hive.Tests.Client.TestClient.TestClient ( bool  useTcp)
inline

Initializes a new instance of the TestClient class.

Parameters
useTcpThe use Tcp.

Member Function Documentation

void Photon.Hive.Tests.Client.TestClient.Close ( )
inline

The close.

void Photon.Hive.Tests.Client.TestClient.Connect ( string  hostName,
int  port,
string  applicationId 
)
inline

The connect.

Parameters
hostNameThe host name.
portThe port.
applicationIdThe application Id.
void Photon.Hive.Tests.Client.TestClient.DebugReturn ( DebugLevel  debugLevel,
string  debug 
)
inline

The debug return.

Parameters
debugLevelThe debug Level.
debugThe debug message.
void Photon.Hive.Tests.Client.TestClient.Dispose ( )
inline

The dispose.

void Photon.Hive.Tests.Client.TestClient.OnEvent ( ExitGames.Client.Photon.EventData @  event)
inline
void Photon.Hive.Tests.Client.TestClient.OnMessage ( object  message)
inline
void Photon.Hive.Tests.Client.TestClient.OnOperationResponse ( ExitGames.Client.Photon.OperationResponse  operationResponse)
inline
void Photon.Hive.Tests.Client.TestClient.OnStatusChanged ( StatusCode  returnCode)
inline
void Photon.Hive.Tests.Client.TestClient.SendOperationRequest ( OperationRequest  operationRequest)
inline

The send operation request.

Parameters
operationRequestThe operation request.
void Photon.Hive.Tests.Client.TestClient.SendOperationRequests ( OperationRequest[]  operationRequests)
inline

Sends a couple of operation requests.

Parameters
operationRequestsThe operation requests.
bool Photon.Hive.Tests.Client.TestClient.WaitForConnect ( int  millisecondsWaitTime)
inline

The wait for connect.

Parameters
millisecondsWaitTimeThe milliseconds wait time.
Returns
true if connected.
EventData Photon.Hive.Tests.Client.TestClient.WaitForEvent ( int  millisecodsWaitTime)
inline

The wait for event.

Parameters
millisecodsWaitTimeThe millisecods wait time.
Returns
the event
OperationResponse Photon.Hive.Tests.Client.TestClient.WaitForOperationResponse ( int  millisecodsWaitTime)
inline

The wait for operation response.

Parameters
millisecodsWaitTimeThe millisecods wait time.
Returns
the response

Property Documentation

PhotonPeer Photon.Hive.Tests.Client.TestClient.PhotonClient
get

Gets the underling PhotonClient.

Event Documentation

Action<TestClient> Photon.Hive.Tests.Client.TestClient.Connected
static

The connected.

Action<TestClient> Photon.Hive.Tests.Client.TestClient.Disonnected
static

The disconnected.

Action<TestClient, EventData> Photon.Hive.Tests.Client.TestClient.EventReceived
static

The event received.

Action<TestClient, OperationResponse> Photon.Hive.Tests.Client.TestClient.ResponseReceived
static

The response received.