+
Point of view
All features
class IPV4_ADDRESS
Summary
The host represented by its address. Currently only IPv4 is supported.
Direct parents
Inherit list: ADDRESS
Overview
Creation features
{ANY}
Features
{ANY}
{ACCESS, ADDRESS}
{}
{ANY}
{ANY}
  • is_equal (other: IPV4_ADDRESS): BOOLEAN
    Is other attached to an object considered equal to current object?
writable attribute
{ANY}
The four parts of an IP address.
Example: 192.168.0.1 will be represented:
  a = 192
  b = 168
  c = 0
  d = 1
writable attribute
{ANY}
The four parts of an IP address.
Example: 192.168.0.1 will be represented:
  a = 192
  b = 168
  c = 0
  d = 1
writable attribute
{ANY}
The four parts of an IP address.
Example: 192.168.0.1 will be represented:
  a = 192
  b = 168
  c = 0
  d = 1
writable attribute
{ANY}
The four parts of an IP address.
Example: 192.168.0.1 will be represented:
  a = 192
  b = 168
  c = 0
  d = 1
hash_code: INTEGER_32
effective function
{ANY}
The hash-code value of Current.
ensure
  • good_hash_value: Result >= 0
out: STRING
effective function
{ANY}
Create a new string containing terse printable representation of current object.
new_socket (access: ACCESS): SOCKET
effective function
require
  • access /= Void
ensure
  • error = Void implies Result /= Void
make (ip_a: INTEGER_32, ip_b: INTEGER_32, ip_c: INTEGER_32, ip_d: INTEGER_32)
effective procedure
{}
require
  • ip_a.in_range(0, 255)
  • ip_b.in_range(0, 255)
  • ip_c.in_range(0, 255)
  • ip_d.in_range(0, 255)
error: STRING
writable attribute
{ANY}
If there was an error
is_equal (other: IPV4_ADDRESS): BOOLEAN
deferred function
{ANY}
Is other attached to an object considered equal to current object?
require
  • other /= Void
ensure
  • Result implies hash_code = other.hash_code
  • commutative: generating_type = other.generating_type implies Result = other.is_equal(Current)