Photon Server API
Static Public Member Functions | Properties | List of all members
ExitGames.Messaging.Channels.TopicMessage Struct Reference

This stuct is sent through the socket. More...

Static Public Member Functions

static bool Deserialize (byte[] bytes, int offset, int length, out TopicMessage message)
 Deserializes a TopicMessage. More...
 
static byte[] Serialize (TopicMessage message)
 Serializes a TopicMessage. More...
 
static byte[] Serialize (Guid hostId, string topic, byte[] data)
 Serializes a TopicMessage. More...
 

Properties

byte[] Data [get, set]
 Gets or sets the payload data. More...
 
Guid HostId [get, set]
 Gets or sets the sending host id. More...
 
string Topic [get, set]
 Gets or sets the topic. More...
 

Detailed Description

This stuct is sent through the socket.

Member Function Documentation

static bool ExitGames.Messaging.Channels.TopicMessage.Deserialize ( byte[]  bytes,
int  offset,
int  length,
out TopicMessage  message 
)
inlinestatic

Deserializes a TopicMessage.

Parameters
bytesThe bytes.
offsetThe offset.
lengthThe length.
messageThe result message
Returns
True on success, otherwise false.
static byte [] ExitGames.Messaging.Channels.TopicMessage.Serialize ( TopicMessage  message)
inlinestatic

Serializes a TopicMessage.

Parameters
messageThe message.
Returns
A byte array.
static byte [] ExitGames.Messaging.Channels.TopicMessage.Serialize ( Guid  hostId,
string  topic,
byte[]  data 
)
inlinestatic

Serializes a TopicMessage.

Parameters
hostIdThe host Id.
topicThe topic.
dataThe data.
Returns
A byte array that can be converted to a TopicMessage with Deserialize.

Property Documentation

byte [] ExitGames.Messaging.Channels.TopicMessage.Data
getset

Gets or sets the payload data.

Guid ExitGames.Messaging.Channels.TopicMessage.HostId
getset

Gets or sets the sending host id.

string ExitGames.Messaging.Channels.TopicMessage.Topic
getset

Gets or sets the topic.