public InfoReplyIp4(LocatorUDPv4 unicastLocator, LocatorUDPv4 multicastLocator) : base(SubMessageKind.INFO_REPLY_IP4) { this.unicastLocator = unicastLocator; this.multicastLocator = multicastLocator; if (multicastLocator != null) { Header.Flags.SetMulticastFlag(); } }
public static void PutLocatorUDPv4(this IoBuffer buffer, LocatorUDPv4 obj) { buffer.PutInt32(obj.Port); buffer.PutInt32(obj.Address); }
public static void GetLocatorUDPv4(this IoBuffer buffer, ref LocatorUDPv4 obj) { obj.Port = buffer.GetInt32(); obj.Address = buffer.GetInt32(); }
public static LocatorUDPv4 GetLocatorUDPv4(this IoBuffer buffer) { LocatorUDPv4 obj = new LocatorUDPv4(); buffer.GetLocatorUDPv4(ref obj); return obj; }