Photon Unity Networking v1.101

Public Member Functions | Static Public Attributes | Properties | List of all members
Photon.Chat.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...
 

Static 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()

Photon.Chat.ChatPeer.ChatPeer ( IPhotonPeerListener  listener,
ConnectionProtocol  protocol 
)

Chat Peer constructor.

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

Member Function Documentation

◆ AuthenticateOnNameServer()

bool Photon.Chat.ChatPeer.AuthenticateOnNameServer ( string  appId,
string  appVersion,
string  region,
AuthenticationValues  authValues 
)

Authenticates on NameServer.

Returns
If the authentication operation request could be sent.

◆ Connect()

bool Photon.Chat.ChatPeer.Connect ( )

Connects to NameServer.

Returns
If the connection attempt could be sent.

Member Data Documentation

◆ NameServerHost

const string Photon.Chat.ChatPeer.NameServerHost = "ns.exitgames.com"
static

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

◆ NameServerHttp

const string Photon.Chat.ChatPeer.NameServerHttp = "http://ns.exitgamescloud.com:80/photon/n"
static

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

Property Documentation

◆ NameServerAddress

string Photon.Chat.ChatPeer.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.