19 lines
643 B
Plaintext
19 lines
643 B
Plaintext
|
#!/usr/bin/env ruby
|
||
|
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
require_relative 'config_manager'
|
||
|
|
||
|
# Initialize the ConfigManager
|
||
|
config = ProtoConfig::ConfigManager.instance
|
||
|
|
||
|
# Your logic to start the Protocol Handler goes here
|
||
|
# For example, you could initialize your server with the IP and port from the config
|
||
|
# Or pass the recently_connected_time to your connection handling logic
|
||
|
|
||
|
puts "NETRAVE Packet Exchange Protocol Handler (NPEPH) is starting..."
|
||
|
puts "Listening on #{config.listen_ip}:#{config.listen_port}"
|
||
|
puts "Recently connected time threshold: #{config.recently_connected_time} seconds"
|
||
|
|
||
|
# Your server initialization and start logic here
|