Exemple #1
0
        public InfoReplyIp4(LocatorUDPv4 unicastLocator, LocatorUDPv4 multicastLocator)
            : base(SubMessageKind.INFO_REPLY_IP4)
        {
            this.unicastLocator = unicastLocator;
            this.multicastLocator = multicastLocator;

            if (multicastLocator != null)
            {
                Header.Flags.SetMulticastFlag();
            }
        }
Exemple #2
0
 public static void PutLocatorUDPv4(this IoBuffer buffer, LocatorUDPv4 obj)
 {
     buffer.PutInt32(obj.Port);
     buffer.PutInt32(obj.Address);
 }
Exemple #3
0
 public static void GetLocatorUDPv4(this IoBuffer buffer, ref LocatorUDPv4 obj)
 {
     obj.Port = buffer.GetInt32();
     obj.Address = buffer.GetInt32();
 }
Exemple #4
0
 public static LocatorUDPv4 GetLocatorUDPv4(this IoBuffer buffer)
 {
     LocatorUDPv4 obj = new LocatorUDPv4();
     buffer.GetLocatorUDPv4(ref obj);
     return obj;
 }