The OpenD Programming Language

InternetAddress.opEquals

Provides support for comparing equality with another InternetAddress of the same type.

class InternetAddress
override const
bool
opEquals

Return Value

Type: bool

true if the InternetAddresses share the same address and port number.

Examples

auto addr1 = new InternetAddress("127.0.0.1", 80);
auto addr2 = new InternetAddress("127.0.0.2", 80);

assert(addr1 == addr1);
assert(addr1 != addr2);

Meta