This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn init_tox() -> Tox | |
{ | |
// load Tox Profile | |
let mut xp: Vec<u8> = Vec::new(); | |
let mut tox = match Tox::new(ToxOptions::new(), match File::open(Path::new(HFB_PROFILE)) | |
{ | |
Ok(mut data) => | |
{ | |
data.read_to_end(&mut xp).ok().expect("[ERROR] Impossible de lire le profil."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unused_variables)] | |
extern crate rstox; | |
use rstox::core::*; | |
use std::path::Path; | |
use std::fs::File; | |
use std::io::prelude::*; | |
// Static options. | |
static BOOTSTRAP_IP: &'static str = "195.154.119.113"; |
NewerOlder