aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/iceftp.rs
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-05-27 19:10:12 -0400
committerbnewbold <bnewbold@robocracy.org>2016-05-27 19:10:12 -0400
commit22043b299c0b2abf2c552b177f32a9ce6654be3b (patch)
tree45bd7c361f30c0e4e333a6e8b00ce6a8e8b04262 /src/bin/iceftp.rs
parentef339c3bbbb3d53948e7e4f11e7e7945ed194bea (diff)
downloaducp-22043b299c0b2abf2c552b177f32a9ce6654be3b.tar.gz
ucp-22043b299c0b2abf2c552b177f32a9ce6654be3b.zip
start refactor to ucp
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");
-}