Skip to main content

PROTOCOL_VERSION

Constant PROTOCOL_VERSION 

Source
pub const PROTOCOL_VERSION: u64 = 2;
Expand description

当前协议版本,握手时 hello.protocol 必须与之相等,否则启动失败并返回 protocol_mismatch。