pub fn new(port: usize, threadsize: usize) -> Network {
        let listener = TcpListener::bind(format!("{}:{}", HOSTNAME, port)).unwrap();

        Network {
            listener,
            net_workers: ThreadPool::new(threadsize),
        }
    }
/// Instantiates a Network Instance on specific port.
Instantiates a Network Instance on specific port.
Instantiates a Network Instance on specific port .
pub fn new(port: usize, threadsize: usize) -> Network {
        let listener = TcpListener::bind(format!("{}:{}", HOSTNAME, port)).unwrap();
        Network {
            listener,
            net_workers: ThreadPool::new(threadsize),
        }
    }
pub fn new ( port : usize , threadsize : usize ) -> Network { let listener = TcpListener :: bind ( format ! ( " " HOSTNAME port ) ) . unwrap ( ) ; Network { listener , net_workers : ThreadPool :: new ( threadsize ) , } }
Instantiates a Network Instance on specific port.
Instantiates a Network Instance on specific port .
port
usize
threadsize
usize
port
usize
threadsize
usize