module sockets_helpers
module lib/sockets_helpers.mu
import "sockets_helpers"
sockets_helpers provides shared parsing buffers, address utilities, and runtime helpers for lib/sockets.mu. It stays small so the public sockets API remains focused.
Imports
This module exports no documented declarations.
Internal helpers
Underscore-prefixed names are implementation detail. They are listed so the module's source reads without surprises, not as API — they may change at any time.
| _AF_INET | — |
| _AF_UNIX | — |
| _DEFAULT_BACKLOG | — |
| _IPPROTO_TCP | — |
| _IPPROTO_UDP | — |
| _SOCK_DGRAM | — |
| _SOCK_STREAM | — |
| _buffer_to_string(buffer, length) | — |
| _build_sockaddr(parsed) | — |
| _build_sockaddr_un(path) | — |
| _clone_buffer(source) | — |
| _decode_sockaddr(addr_buf, len_buf, scheme) | — |
| _detect_ipv6_family() | — |
| _find_char(text, char) | — |
| _format_address_text(scheme, ip_buf, port, is_ipv6) | — |
| _format_ipv4_text(buffer) | — |
| _format_ipv6_text(buffer) | — |
| _get_local_address(fd, scheme) | — |
| _get_socklen(buf) | — |
| _ipv6_family | — |
| _is_bsd_platform() | — |
| _last_index(text, char) | — |
| _parse_host_port(value) | — |
| _parse_ipv4(value) | — |
| _parse_ipv4_fields(text, start, end, buffer, offset) | — |
| _parse_ipv6(value) | — |
| _parse_socket_address(value, require_scheme) | — |
| _proto_for_scheme(scheme) | — |
| _require_conn(value) | — |
| _require_listener(value) | — |
| _require_sock(value) | — |
| _set_socklen(buf, value) | — |
| _sockaddr_family(addr_buf) | — |
| _sockaddr_length(family) | — |
| _socket_type_for_scheme(scheme) | — |
| _zero_buffer(buffer) | — |