Skip to content

Commit e2810c0

Browse files
committed
1.0
1 parent 9ddfca2 commit e2810c0

File tree

6 files changed

+644
-25
lines changed

6 files changed

+644
-25
lines changed

Cargo.lock

Lines changed: 244 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ env_logger = "0.10.0" # A logging implementation for `log` whi
1111
tokio-tungstenite = "0.18.0" # Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation
1212
tokio = { version = "1.26.0", features = ["full"] } # An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.
1313
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
14+
chrono = "0.4.23" # Date and time library for Rust
1415

1516
[dependencies.tungstenite]
1617
version = "0.18.0"
1718
default-features = false
19+
20+
[dependencies.url]
21+
version = "2.3.1"

README.md

100644100755
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# tcp2ws
2+
```
3+
client <------ tcp ------> server
4+
to:
5+
client <---tcp2ws---> websocket <---tcp2ws---> server
6+
```
7+
8+
server:
9+
```
10+
tcp2ws server -l 8080 -p 22
11+
```
12+
13+
client:
14+
```
15+
tcp2ws -l 2222 -w ws://server:8080
16+
```
17+
18+
now, you can use `ssh root@client -p 2222` which should be the same as `ssh root@server`
19+
220

321
# development
422

0 commit comments

Comments
 (0)