Function peerlink::user_agent

source ·
pub fn user_agent(app_name: &str, app_version: &str) -> String
Expand description

Creates a well formed BIP0014 user agent string that should be used with version messages. For instance, if app_name is supernode and app_version is 0.6.5 and the version of Peerlink being used is 0.4.0, the resulting string will be /peerlink:0.4.0/supernode:0.6.5/.