run command is the primary command for starting paqet in either client or server mode based on your configuration file.
Syntax
Description
Therun command reads a YAML configuration file and starts paqet as either a client or server depending on the role specified in the config. It initializes the logging system, buffer pools, and starts the appropriate transport layer.
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--config | -c | config.yaml | Path to the configuration file |
Usage Examples
Start with default config
Start with custom config file
Start client
Start server
The configuration file determines whether paqet runs as a client or server based on the
role field. See Configuration for details on setting up your config file.What Happens When You Run
- Configuration Loading: The specified YAML file is loaded and validated
- Initialization: Log level and buffer pools are configured based on settings
- Role Detection: paqet checks the
rolefield in the config - Startup: Launches either client or server mode with the specified parameters
If the configuration file is invalid or the role is not specified correctly, paqet will exit with an error message.