We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42614d2 commit b6c302dCopy full SHA for b6c302d
1 file changed
Assets/MultiplexSocket/Runtime/ConnectionEndPoint.cs
@@ -18,5 +18,27 @@ public IEndPoint CreateCopy()
18
socket = socket
19
};
20
}
21
+
22
+ public override bool Equals(object obj)
23
+ {
24
+ if (obj is ConnectionEndPoint other)
25
26
+ return socket.Equals(other.socket) && inner.Equals(other.inner);
27
+ }
28
+ return false;
29
30
31
+ public override int GetHashCode()
32
33
+ int hash = 17;
34
+ hash = hash * 23 + socket.GetHashCode();
35
+ hash = hash * 23 + inner.GetHashCode();
36
+ return hash;
37
38
39
+ public override string ToString()
40
41
+ return $"Socket:{socket} EndPoint{inner}";
42
43
44
0 commit comments