pub fn new(cfg: Config) -> Server {
        Server {
            id: "GrinPool".to_string(),
            config: cfg,
            stream: None,
            protocol: StratumProtocol::new(),
            error: false,
            job: JobTemplate::new(),
            status: WorkerStatus::new("GrinPool".to_string()),
            buffer: String::with_capacity(4096),
        }
    }
/// Creates a new Stratum Server Connection.
Creates a new Stratum Server Connection.
Creates a new Stratum Server Connection .
pub fn new(cfg: Config) -> Server {
        Server {
            id: "GrinPool".to_string(),
            config: cfg,
            stream: None,
            protocol: StratumProtocol::new(),
            error: false,
            job: JobTemplate::new(),
            status: WorkerStatus::new("GrinPool".to_string()),
            buffer: String::with_capacity(4096),
        }
    }
pub fn new ( cfg : Config ) -> Server { Server { id : " " . to_string ( ) , config : cfg , stream : None , protocol : StratumProtocol :: new ( ) , error : false , job : JobTemplate :: new ( ) , status : WorkerStatus :: new ( " " . to_string ( ) ) , buffer : String :: with_capacity ( 4096 ) , } }
Creates a new Stratum Server Connection.
Creates a new Stratum Server Connection .
cfg
Config