Reference
ports feature
What it doesPermalink to What it does#
The ports processes on this system listen on, one owner each.
Use itPermalink to Use it#
Every system has this feature: Vessel adds it to every configuration, so it never goes in the feature list. This part of a system configuration gives it items:
Example: feature-ports-example
(import (vessel system))
;; A listener claims its port, so no other feature can take it.
(system-configuration
features:
(cons (simple-feature 'metrics ports-feature
(list (listener port: 9100 address: "127.0.0.1"
owner: "metrics")))
%base-features))
Verified
A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.
OptionsPermalink to Options#
None. This feature type takes no configuration.
What it addsPermalink to What it adds#
It sends nothing to other feature types.
What it receivesPermalink to What it receives#
listener: A socket an instance binds, claimed by protocol, address and port.
Used inPermalink to Used in#
No page refers to it yet.