Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ operator==()

static bool System.Net.Sockets.IPPacketInformation.operator== ( IPPacketInformation packetInformation1,
IPPacketInformation packetInformation2 )
inlinestatic

Definition at line 21 of file IPPacketInformation.cs.

22 {
23 if (packetInformation1._networkInterface == packetInformation2._networkInterface)
24 {
25 if (packetInformation1._address != null || packetInformation2._address != null)
26 {
27 if (packetInformation1._address != null)
28 {
29 return packetInformation1._address.Equals(packetInformation2._address);
30 }
31 return false;
32 }
33 return true;
34 }
35 return false;
36 }

References System.Net.Sockets.IPPacketInformation._address, System.Net.Sockets.IPPacketInformation._networkInterface, and System.Net.IPAddress.Equals().