class LOCAL_ACCESS

All features

Access to a server on the local machine.

Direct parents

conformant parents

ACCESS

non-conformant parents

SOCKET_PLUG_IN

Summary

creation features

exported features

Plugin

Details

make (a_address: LOCALHOST, a_port: INTEGER)

Access to a server on the given host address listening at the given port

require

  • a_address /= Void
  • a_port.in_range(1, 65535)

address: LOCALHOST

The host of the server

server: SOCKET_SERVER

Start a server on the given port on localhost, listening to connections bound to the given address.

make (a_address: LOCALHOST, a_port: INTEGER)

Access to a server on the given host address listening at the given port

require

  • a_address /= Void
  • a_port.in_range(1, 65535)

socket: SOCKET

Create a low-level socket connected to the remote address and host.

port: INTEGER

The port on which the server runs

stream: SOCKET_INPUT_OUTPUT_STREAM

Open a connection to the remote address and port.

ensure

  • Result.is_connected

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