Skip to content

Commit

Permalink
Minor improvements in README.md and demo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
balacode committed Apr 28, 2021
1 parent d321a47 commit f2a8612
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
```

Expand All @@ -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.
4 changes: 2 additions & 2 deletions demo/demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f2a8612

Please sign in to comment.