-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md with building instructions #49
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# udp-over-tcp | ||
|
||
## Introduction | ||
|
||
A library (and binaries) for tunneling UDP datagrams over a TCP stream. | ||
|
||
Some programs/protocols only work over UDP. And some networks only allow TCP. This is where | ||
|
@@ -18,6 +20,35 @@ Some programs/protocols only work over UDP. And some networks only allow TCP. Th | |
`tcp2udp` continues to accept new incoming TCP connections, and creates a new UDP socket | ||
for each. So a single `tcp2udp` server can be used to service many `udp2tcp` clients. | ||
|
||
## Building | ||
|
||
Ensure you have the required dependencies installed on: | ||
|
||
### Debian / Ubuntu | ||
|
||
Install Rust by following the guides for [Rustup]([url](https://www.rust-lang.org/tools/install)) | ||
|
||
Install ibc6-dev with APT: | ||
|
||
``` | ||
sudo apt install -y libc6-dev | ||
``` | ||
|
||
### Fedora | ||
|
||
All dependencies can be installed as follows: | ||
|
||
``` | ||
sudo dnf install -y cargo rust glibc-static | ||
``` | ||
|
||
Run the script `build-static-bins.sh` to produce the static binary files. These will be outputted to: | ||
|
||
``` | ||
$ ls target/x86_64-unknown-linux-gnu/release/ | ||
build deps examples incremental tcp2udp tcp2udp.d udp2tcp udp2tcp.d | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You only care about a single file here. I'm not going to mark this as a blocker, do whatever fits you. But if the main problem was to make it easy for someone not super into Rust to just produce a
No one runs this script to get |
||
``` | ||
|
||
## Protocol | ||
|
||
The format of the data inside the TCP stream is very simple. Each datagram is preceded | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo on package name. Missing
l