dhcpkit.ipv6.server.main module

The main server process

dhcpkit.ipv6.server.main.create_control_socket(args, config: dhcpkit.ipv6.server.config_elements.MainConfig) → dhcpkit.ipv6.server.control_socket.ControlSocket[source]

Create a control socket when configured to do so.

Parameters:
  • args – The command line arguments
  • config – The server configuration
Returns:

The name of the created control socket

dhcpkit.ipv6.server.main.create_pidfile(args, config: dhcpkit.ipv6.server.config_elements.MainConfig) → Union[source]

Create a PID file when configured to do so.

Parameters:
  • args – The command line arguments
  • config – The server configuration
Returns:

The name of the created PID file

dhcpkit.ipv6.server.main.error_callback(exception)[source]

Show exceptions that occur while handling messages

Parameters:exception – The exception that occurred
dhcpkit.ipv6.server.main.handle_args(args: Iterable)[source]

Handle the command line arguments.

Parameters:args – Command line arguments
Returns:The arguments object
dhcpkit.ipv6.server.main.main(args: Iterable) → int[source]

The main program loop

Parameters:args – Command line arguments
Returns:The program exit code
dhcpkit.ipv6.server.main.run() → int[source]

Run the main program and handle exceptions

Returns:The program exit code
dhcpkit.ipv6.server.main.stop_logging_thread()[source]

Stop the logging thread from the global