class HOST

All features

The host is represented by a name. The name will be resolved by a DNS.

Direct parents

conformant parents

ADDRESS

non-conformant parents

SOCKET_PLUG_IN

Summary

creation features

exported features

Plugin

Details

make (a_hostname: STRING)

require

  • a_hostname /= Void

hostname: STRING

The name of the host

ip: IP_ADDRESS

The resolved address

ensure

  • conservative: Result = ip

hash_code: INTEGER

The hash-code value of Current.

ensure

  • good_hash_value: Result >= 0

out: STRING

Create a new string containing terse printable representation of current object.

resolved: IP_ADDRESS
resolve

Resolve the host address by looking for the IP address (uses DNS resolution)

require

  • resolved = Void

ensure

  • last_error = Void
  • resolved /= Void

make (a_hostname: STRING)

require

  • a_hostname /= Void

deferred is_equal (other: HOST): BOOLEAN

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)

last_error: STRING
last_error_memory: STRING
net_tcp (ip_a: INTEGER, ip_b: INTEGER, ip_c: INTEGER, ip_d: INTEGER, a_port: INTEGER): INTEGER
net_udp (ip_a: INTEGER, ip_b: INTEGER, ip_c: INTEGER, ip_d: INTEGER, a_port: INTEGER): INTEGER
net_local (a_port: INTEGER): INTEGER
net_select (a_fd: INTEGER, a_timeout: REAL): INTEGER
net_read (a_fd: INTEGER, a_count: INTEGER, a_buffer: POINTER): INTEGER
net_write (a_fd: INTEGER, a_count: INTEGER, a_buffer: NATIVE_ARRAY [E_][CHARACTER]): INTEGER
net_accept (a_fd: INTEGER, a_val: NATIVE_ARRAY [E_][INTEGER])
net_disconnect (a_fd: INTEGER)
net_shutdown (a_fd: INTEGER)
net_last_error: POINTER
net_last_error_number: INTEGER
net_hostname (a_hostname: POINTER): INTEGER
net_tcp_server (port: INTEGER): INTEGER
net_udp_server (port: INTEGER): INTEGER
net_local_server (port: INTEGER): INTEGER