Photon Unity Networking: OperationCode Class Reference

Photon Unity Networking

OperationCode Class Reference

Class for constants. Contains operation codes. Pun uses these constants internally. More...

Public Attributes

const byte ExchangeKeysForEncryption = 250
 
const byte Join = 255
 (255) Code for OpJoin, to get into a room. More...
 
const byte AuthenticateOnce = 231
 (231) Authenticates this peer and connects to a virtual application More...
 
const byte Authenticate = 230
 (230) Authenticates this peer and connects to a virtual application More...
 
const byte JoinLobby = 229
 (229) Joins lobby (on master) More...
 
const byte LeaveLobby = 228
 (228) Leaves lobby (on master) More...
 
const byte CreateGame = 227
 (227) Creates a game (or fails if name exists) More...
 
const byte JoinGame = 226
 (226) Join game (by name) More...
 
const byte JoinRandomGame = 225
 (225) Joins random game (on master) More...
 
const byte Leave = (byte)254
 (254) Code for OpLeave, to get out of a room. More...
 
const byte RaiseEvent = (byte)253
 (253) Raise event (in a room, for other actors/players) More...
 
const byte SetProperties = (byte)252
 (252) Set Properties (of room or actor/player) More...
 
const byte GetProperties = (byte)251
 (251) Get Properties More...
 
const byte ChangeGroups = (byte)248
 (248) Operation code to change interest groups in Rooms (Lite application and extending ones). More...
 
const byte FindFriends = 222
 (222) Request the rooms and online status for a list of friends (by name, which should be unique). More...
 
const byte GetLobbyStats = 221
 (221) Request statistics about a specific list of lobbies (their user and game count). More...
 
const byte GetRegions = 220
 (220) Get list of regional servers from a NameServer. More...
 
const byte WebRpc = 219
 (219) WebRpc Operation. More...
 
const byte ServerSettings = 218
 (218) Operation to set some server settings. Used with different parameters on various servers. More...
 
const byte GetGameList = 217
 (217) Get the game list matching a supplied sql filter (SqlListLobby only) More...
 

Detailed Description

Class for constants. Contains operation codes. Pun uses these constants internally.

Member Data Documentation

const byte OperationCode.Authenticate = 230

(230) Authenticates this peer and connects to a virtual application

const byte OperationCode.AuthenticateOnce = 231

(231) Authenticates this peer and connects to a virtual application

const byte OperationCode.ChangeGroups = (byte)248

(248) Operation code to change interest groups in Rooms (Lite application and extending ones).

const byte OperationCode.CreateGame = 227

(227) Creates a game (or fails if name exists)

const byte OperationCode.ExchangeKeysForEncryption = 250
const byte OperationCode.FindFriends = 222

(222) Request the rooms and online status for a list of friends (by name, which should be unique).

const byte OperationCode.GetGameList = 217

(217) Get the game list matching a supplied sql filter (SqlListLobby only)

const byte OperationCode.GetLobbyStats = 221

(221) Request statistics about a specific list of lobbies (their user and game count).

const byte OperationCode.GetProperties = (byte)251

(251) Get Properties

const byte OperationCode.GetRegions = 220

(220) Get list of regional servers from a NameServer.

const byte OperationCode.Join = 255

(255) Code for OpJoin, to get into a room.

const byte OperationCode.JoinGame = 226

(226) Join game (by name)

const byte OperationCode.JoinLobby = 229

(229) Joins lobby (on master)

const byte OperationCode.JoinRandomGame = 225

(225) Joins random game (on master)

const byte OperationCode.Leave = (byte)254

(254) Code for OpLeave, to get out of a room.

const byte OperationCode.LeaveLobby = 228

(228) Leaves lobby (on master)

const byte OperationCode.RaiseEvent = (byte)253

(253) Raise event (in a room, for other actors/players)

const byte OperationCode.ServerSettings = 218

(218) Operation to set some server settings. Used with different parameters on various servers.

const byte OperationCode.SetProperties = (byte)252

(252) Set Properties (of room or actor/player)

const byte OperationCode.WebRpc = 219

(219) WebRpc Operation.

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH