+
Point of view
All features
class LOCAL_ACCESS
Summary
Access to a server on the local machine.
Direct parents
Inherit list: ACCESS
Insert list: SOCKET_PLUG_IN
Overview
Creation features
{ANY}
Features
{ANY}
{ADDRESS}
{}
{ANY}
{}
{}
Plugin
{}
Name resolution -- see LOCALHOST
{}
Macros for setting options
{}
port: INTEGER_32
writable attribute
{ANY}
address: LOCALHOST
writable attribute
{ANY}
The host of the server
server: SOCKET_SERVER
effective function
{ANY}
Start a server on the given access on localhost, listening to connections bound to the given address.
new_local_socket: SOCKET
effective function
make (a_address: LOCALHOST, a_port: INTEGER_32, a_sync: BOOLEAN)
effective procedure
{}
Access to a server on the given host address listening at the given port
require
  • a_address /= Void
  • a_port.in_range(1, 65535)
sync: BOOLEAN
writable attribute
{}
error: STRING
writable attribute
{ANY}
If an error occurred
effective function
{ANY}
Open a connection to the remote address and access.
ensure
  • error = Void implies Result.is_connected
effective function
{}
socket: SOCKET
effective function
{}
Create a low-level socket connected to the remote address and host.
ensure
  • error = Void implies Result.is_connected
last_error: STRING
effective function
{}
last_error_number: INTEGER_32
effective function
{}
require
net_tcp (ip_a: INTEGER_32, ip_b: INTEGER_32, ip_c: INTEGER_32, ip_d: INTEGER_32, a_port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_udp (ip_a: INTEGER_32, ip_b: INTEGER_32, ip_c: INTEGER_32, ip_d: INTEGER_32, a_port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_local (a_port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_select (a_fd: INTEGER_32, a_timeout: REAL_64): INTEGER_32
{}
net_read (a_fd: INTEGER_32, a_count: INTEGER_32, a_buffer: POINTER, sync: BOOLEAN): INTEGER_32
{}
net_write (a_fd: INTEGER_32, a_count: INTEGER_32, a_buffer: NATIVE_ARRAY[CHARACTER]): INTEGER_32
{}
net_accept (a_fd: INTEGER_32, a_val: NATIVE_ARRAY[INTEGER_32], a_sync: BOOLEAN)
{}
net_disconnect (a_fd: INTEGER_32)
{}
net_shutdown (a_fd: INTEGER_32)
{}
net_last_error: POINTER
{}
net_last_error_number: INTEGER_32
{}
net_last_error_try_again: BOOLEAN
{}
net_hostname (a_hostname: POINTER): INTEGER_32
{}
net_tcp_server (port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_udp_server (port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_local_server (port: INTEGER_32, a_sync: BOOLEAN): INTEGER_32
{}
net_bind_server (socket: INTEGER_32, port: INTEGER_32, sockfamily: INTEGER_32): INTEGER_32
{}
net_set_int_option (fd: INTEGER_32, level: INTEGER_32, optname: INTEGER_32, opt_val: INTEGER_32): INTEGER_32
{}
net_tcp_socket (sync: BOOLEAN): INTEGER_32
{}
net_udp_socket (sync: BOOLEAN): INTEGER_32
{}
net_local_socket (sync: BOOLEAN): INTEGER_32
{}
net_gethostname: POINTER
{}
net_sethostname (hn: POINTER, size: INTEGER_32)
{}
net_getdomainname: POINTER
{}
net_setdomainname (dn: POINTER, size: INTEGER_32)
{}
sol_socket: INTEGER_32
{}
so_reuse_addr: INTEGER_32
{}
af_inet: INTEGER_32
{}