There was an error while loading. Please reload this page.
The RakNetServer struct is defined as follows:
pub struct RakNetServer { pub address: String, pub version: RakNetVersion, pub connections: Arc<Mutex<HashMap<String, Connection>>>, pub start_time: SystemTime }
String
192.168.0.1:19132
Creates a instance which can later be started.
Example:
let mut server = RakNetServer::new(String::from("0.0.0.0:19132"));
JoinHandle<()>
Tuple<
JoinHandle
,
>
Starts the two Client and Server threads for accepting connections with RakNet.
Client
Server
let (send, recv) = server.start(); send.join().unwrap(); recv.join().unwrap();
⚠️ Note:
These handles are returned to allow ease when making RakNet concurrently.