aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.rs
blob: 8183bbfcb9df2bf2af22c3ad932e49b03557b66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

extern crate utp;

use std::str;
use std::env;
use std::fs::File;
use std::io::Read;
use std::process::exit;
use utp::{UtpSocket};


pub fn send_files(socket: &mut UtpSocket, file_path: &str, recursive: bool) {
    assert!(!recursive);
    let f = File::open(file_path).unwrap();
    unimplemented!();
}

pub fn receive_files(socket: &mut UtpSocket, file_path: &str, recursive: bool) {
    assert!(!recursive);
    let f = File::create(file_path).unwrap();

    //f.set_len();
}