aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Integration
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-12-20 13:06:58 +0200
committerRoy <Roy.mail.net@gmail.com>2022-12-20 13:06:58 +0200
commit2daf438fd6902138b4229e21a8d67b02da778599 (patch)
treed91655cbf00b48d48a375bec1e48367809808fd9 /Software/Visual_Studio/Tango.PMR/Integration
parent144f4d40b74b552277c12edc6d41b8676440070a (diff)
downloadTango-2daf438fd6902138b4229e21a8d67b02da778599.tar.gz
Tango-2daf438fd6902138b4229e21a8d67b02da778599.zip
Modified TCP machines discovery method to MultiCast.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Integration')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Integration/ExternalBridgeUdpDiscoveryPacket.cs35
1 files changed, 32 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Integration/ExternalBridgeUdpDiscoveryPacket.cs b/Software/Visual_Studio/Tango.PMR/Integration/ExternalBridgeUdpDiscoveryPacket.cs
index df584d5c6..309f95be3 100644
--- a/Software/Visual_Studio/Tango.PMR/Integration/ExternalBridgeUdpDiscoveryPacket.cs
+++ b/Software/Visual_Studio/Tango.PMR/Integration/ExternalBridgeUdpDiscoveryPacket.cs
@@ -23,13 +23,14 @@ namespace Tango.PMR.Integration {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiZFeHRlcm5hbEJyaWRnZVVkcERpc2NvdmVyeVBhY2tldC5wcm90bxIVVGFu",
- "Z28uUE1SLkludGVncmF0aW9uIkYKIEV4dGVybmFsQnJpZGdlVWRwRGlzY292",
+ "Z28uUE1SLkludGVncmF0aW9uIlQKIEV4dGVybmFsQnJpZGdlVWRwRGlzY292",
"ZXJ5UGFja2V0EgwKBFRpbWUYASABKAkSFAoMU2VyaWFsTnVtYmVyGAIgASgJ",
- "QiEKH2NvbS50d2luZS50YW5nby5wbXIuaW50ZWdyYXRpb25iBnByb3RvMw=="));
+ "EgwKBEd1aWQYAyABKAlCIQofY29tLnR3aW5lLnRhbmdvLnBtci5pbnRlZ3Jh",
+ "dGlvbmIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Integration.ExternalBridgeUdpDiscoveryPacket), global::Tango.PMR.Integration.ExternalBridgeUdpDiscoveryPacket.Parser, new[]{ "Time", "SerialNumber" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Integration.ExternalBridgeUdpDiscoveryPacket), global::Tango.PMR.Integration.ExternalBridgeUdpDiscoveryPacket.Parser, new[]{ "Time", "SerialNumber", "Guid" }, null, null, null)
}));
}
#endregion
@@ -62,6 +63,7 @@ namespace Tango.PMR.Integration {
public ExternalBridgeUdpDiscoveryPacket(ExternalBridgeUdpDiscoveryPacket other) : this() {
time_ = other.time_;
serialNumber_ = other.serialNumber_;
+ guid_ = other.guid_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -91,6 +93,17 @@ namespace Tango.PMR.Integration {
}
}
+ /// <summary>Field number for the "Guid" field.</summary>
+ public const int GuidFieldNumber = 3;
+ private string guid_ = "";
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public string Guid {
+ get { return guid_; }
+ set {
+ guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ExternalBridgeUdpDiscoveryPacket);
@@ -106,6 +119,7 @@ namespace Tango.PMR.Integration {
}
if (Time != other.Time) return false;
if (SerialNumber != other.SerialNumber) return false;
+ if (Guid != other.Guid) return false;
return true;
}
@@ -114,6 +128,7 @@ namespace Tango.PMR.Integration {
int hash = 1;
if (Time.Length != 0) hash ^= Time.GetHashCode();
if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode();
+ if (Guid.Length != 0) hash ^= Guid.GetHashCode();
return hash;
}
@@ -132,6 +147,10 @@ namespace Tango.PMR.Integration {
output.WriteRawTag(18);
output.WriteString(SerialNumber);
}
+ if (Guid.Length != 0) {
+ output.WriteRawTag(26);
+ output.WriteString(Guid);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -143,6 +162,9 @@ namespace Tango.PMR.Integration {
if (SerialNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber);
}
+ if (Guid.Length != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid);
+ }
return size;
}
@@ -157,6 +179,9 @@ namespace Tango.PMR.Integration {
if (other.SerialNumber.Length != 0) {
SerialNumber = other.SerialNumber;
}
+ if (other.Guid.Length != 0) {
+ Guid = other.Guid;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -175,6 +200,10 @@ namespace Tango.PMR.Integration {
SerialNumber = input.ReadString();
break;
}
+ case 26: {
+ Guid = input.ReadString();
+ break;
+ }
}
}
}