Esempio n. 1
0
 /// <summary>
 /// Serializes this object.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(INGRIDSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteStringUTF8(IpAddress);
     serializer.WriteInt32(Port);
     serializer.WriteStringUTF8(Adjacents);
     serializer.WriteStringUTF8(Location);
 }
Esempio n. 2
0
 /// <summary>
 /// Serializes this object.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(INGRIDSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteStringUTF8(IpAddress);
     serializer.WriteInt32(Port);
     serializer.WriteStringUTF8(Adjacents);
     serializer.WriteStringUTF8(Location);
 }
        /// <summary>
        /// Serializes and writes a NGRIDMessage according to the protocol rules.
        /// </summary>
        /// <param name="serializer">Serializer to serialize message</param>
        /// <param name="message">Message to be serialized</param>
        public void WriteMessage(INGRIDSerializer serializer, NGRIDMessage message)
        {
            //Write protocol type
            serializer.WriteUInt32(NGRIDDefaultProtocolType);

            //Write the message type
            serializer.WriteInt32(message.MessageTypeId);

            //Write message
            serializer.WriteObject(message);
        }
 /// <summary>
 /// Serializes and writes a NGRIDMessage according to the protocol rules.
 /// </summary>
 /// <param name="serializer">Serializer to serialize message</param>
 /// <param name="message">Message to be serialized</param>
 public void WriteMessage(INGRIDSerializer serializer, NGRIDMessage message)
 {
     //Write protocol type
     serializer.WriteUInt32(NGRIDDefaultProtocolType);
     
     //Write the message type
     serializer.WriteInt32(message.MessageTypeId);
     
     //Write message
     serializer.WriteObject(message);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(INGRIDSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
Esempio n. 6
0
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(INGRIDSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
 public override void Serialize(INGRIDSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteInt32(ControllerMessageTypeId);
     serializer.WriteByteArray(MessageData);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(INGRIDSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(INGRIDSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
Esempio n. 10
0
 public override void Serialize(INGRIDSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteInt32(ControllerMessageTypeId);
     serializer.WriteByteArray(MessageData);
 }