aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/iceftp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/iceftp.rs')
-rw-r--r--src/bin/iceftp.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/bin/iceftp.rs b/src/bin/iceftp.rs
deleted file mode 100644
index 3f19dbe..0000000
--- a/src/bin/iceftp.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-
-extern crate utp;
-
-use utp::UtpSocket;
-
-fn main() {
- // Bind to port 3540
- let addr = "127.0.0.1:3540";
- let mut socket = UtpSocket::connect(addr).expect("Error connecting to remote peer");
-
- // Send a string
- socket.send_to("Hi there!".as_bytes()).expect("Write failed");
-
- // Close the socket
- socket.close().expect("Error closing connection");
-}