pub fn from_socket(socket: ProxySocket<S>, flow_stat: Arc<FlowStat>) -> Self {
        Self { socket, flow_stat }
    }
Create a new socket with flow monitor
crates/shadowsocks-service/src/net/mon_socket.rs