pub fn network_listen(&mut self) {
        let core_tx = self.sender_take();
        let players_arc = self.players.clone();

        let thread_size = self.threadsize;

        thread::spawn(move || {
            let network = Network::new(27015, thread_size);

            network.listen(players_arc, core_tx);
        });
    }
/// Starts a thread which listens for incoming connections.
Starts a thread which listens for incoming connections.
Starts a thread which listens for incoming connections .
pub fn network_listen(&mut self) {
        let core_tx = self.sender_take();
        let players_arc = self.players.clone();
        let thread_size = self.threadsize;
        thread::spawn(move || {
            let network = Network::new(27015, thread_size);
            network.listen(players_arc, core_tx);
        });
    }
pub fn network_listen ( & mut self ) { let core_tx = self . sender_take ( ) ; let players_arc = self . players . clone ( ) ; let thread_size = self . threadsize ; thread :: spawn ( move | | { let network = Network :: new ( 27015 , thread_size ) ; network . listen ( players_arc , core_tx ) ; } ) ; }
Starts a thread which listens for incoming connections.
Starts a thread which listens for incoming connections .
&mut self
&mut self