Photon Unity Networking 2  v2.1
English | 日本語 | 한국
Public Member Functions | Public Attributes | Properties | List of all members
ChatPeer Class Reference

Provides basic operations of the Photon Chat server. This internal class is used by public ChatClient. More...

Inherits PhotonPeer.

Public Member Functions

 ChatPeer (IPhotonPeerListener listener, ConnectionProtocol protocol)
 Chat Peer constructor. More...
 
bool Connect ()
 Connects to NameServer. More...
 
bool AuthenticateOnNameServer (string appId, string appVersion, string region, AuthenticationValues authValues)
 Authenticates on NameServer. More...
 

Public Attributes

const string NameServerHost = "ns.exitgames.com"
 Name Server Host Name for Photon Cloud. Without port and without any prefix. More...
 
const string NameServerHttp = "http://ns.exitgamescloud.com:80/photon/n"
 Name Server for HTTP connections to the Photon Cloud. Includes prefix and port. More...
 

Properties

string NameServerAddress [get]
 Name Server Address for Photon Cloud (based on current protocol). You can use the default values and usually won't have to set this value. More...
 

Detailed Description

Provides basic operations of the Photon Chat server. This internal class is used by public ChatClient.

Constructor & Destructor Documentation

ChatPeer ( IPhotonPeerListener  listener,
ConnectionProtocol  protocol 
)

Chat Peer constructor.

Parameters
listenerChat listener implementation.
protocolProtocol to be used by the peer.

Member Function Documentation

bool AuthenticateOnNameServer ( string  appId,
string  appVersion,
string  region,
AuthenticationValues  authValues 
)

Authenticates on NameServer.

Returns
If the authentication operation request could be sent.
bool Connect ( )

Connects to NameServer.

Returns
If the connection attempt could be sent.

Member Data Documentation

const string NameServerHost = "ns.exitgames.com"

Name Server Host Name for Photon Cloud. Without port and without any prefix.

const string NameServerHttp = "http://ns.exitgamescloud.com:80/photon/n"

Name Server for HTTP connections to the Photon Cloud. Includes prefix and port.

Property Documentation

string NameServerAddress
get

Name Server Address for Photon Cloud (based on current protocol). You can use the default values and usually won't have to set this value.