From f2a8612f790cfef80ca6966b13cecd517f72e8cf Mon Sep 17 00:00:00 2001 From: Ali Bala Date: Wed, 28 Apr 2021 11:09:44 +0100 Subject: [PATCH] Minor improvements in README.md and demo.go --- README.md | 9 +++++---- demo/demo.go | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 74da079..30a0065 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ UDP Transport Compresses, encrypts and transfers data between a sender and receiver using UDP protocol. ## Features and Design Aims: -- Avoid the overhead of establishing a TCP and/or TLS handshake. +- Avoid the overhead of establishing a TCP or TCP+TLS handshake. - Reliable transfer of data using an unreliable UDP connection. - Uses AES-256 symmetric cipher for encryption. - Uses zlib library for data compression. @@ -97,8 +97,8 @@ func main() { } // main // prt is like fmt.Println() but prefixes each line with a 'DEMO' tag. -func prt(a ...interface{}) { - fmt.Println(append([]interface{}{"-------------> DEMO"}, a...)...) +func prt(args ...interface{}) { + fmt.Println(append([]interface{}{"-------------> DEMO"}, args...)...) } // prt ``` @@ -107,6 +107,7 @@ This project is in its DRAFT stage: very unstable. At this point it works, but t ## Ideas: - Write unit tests -- Create a drop-in replacement for TCP and/or TLS connections +- Create a drop-in replacement for TCP and TLS connections - Implement some form of transfer control - Improve performance +- Allow multiple Senders and Receivers that use different Address and Port values. diff --git a/demo/demo.go b/demo/demo.go index 1ae1b77..87fd224 100644 --- a/demo/demo.go +++ b/demo/demo.go @@ -73,8 +73,8 @@ func main() { } // main // prt is like fmt.Println() but prefixes each line with a 'DEMO' tag. -func prt(a ...interface{}) { - fmt.Println(append([]interface{}{"-------------> DEMO"}, a...)...) +func prt(args ...interface{}) { + fmt.Println(append([]interface{}{"-------------> DEMO"}, args...)...) } // prt // end