mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-06 12:39:51 +00:00
e0745f4bab
1. Overview
This PR adds data plane APIs to easytier-ffi:
TCP Outbound:
- data_plane_tcp_connect
- data_plane_tcp_read
- data_plane_tcp_write
- data_plane_tcp_close
TCP Listener:
- data_plane_tcp_bind
- data_plane_tcp_accept
- data_plane_tcp_listener_close
UDP:
- data_plane_udp_bind
- data_plane_udp_send_to
- data_plane_udp_recv_from
- data_plane_udp_close
2. Key Changes
The main changes are focused on:
- easytier-contrib/easytier-ffi/src/lib.rs: Added FFI interfaces;
made ERROR_MSG thread-safe.
- easytier/src/gateway/socks5.rs: Bridges the data plane to the
existing Socks5 server logic.
- Added EasyTierUdpSocket, mainly wrapping ref-counting and
critical object (e.g., Socks5EntrySet) hold & drop logic,
and exposing common fields (e.g., local_addr).
- Extended Socks5Server functionality to expose TCP and UDP
socket creation interfaces for FFI calls.
- Other files: Mostly pass-through logic.
- Added a relatively large Go usage example.
49 lines
575 B
Plaintext
49 lines
575 B
Plaintext
# Generated by Cargo
|
|
# will have compiled files and executables
|
|
debug/
|
|
target/
|
|
target-*/
|
|
|
|
# These are backup files generated by rustfmt
|
|
**/*.rs.bk
|
|
|
|
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
*.pdb
|
|
|
|
.vscode
|
|
/.idea
|
|
/.direnv/
|
|
|
|
# perf & flamegraph
|
|
perf.data
|
|
perf.data.old
|
|
flamegraph.svg
|
|
|
|
root-target
|
|
|
|
nohup.out
|
|
|
|
.DS_Store
|
|
|
|
components.d.ts
|
|
|
|
musl_gcc
|
|
|
|
# log
|
|
easytier-panic.log
|
|
|
|
# web
|
|
node_modules
|
|
|
|
.vite
|
|
|
|
easytier-gui/src-tauri/*.dll
|
|
easytier-gui/src-tauri/*.sys
|
|
/easytier-contrib/easytier-ohrs/dist/
|
|
|
|
.direnv
|
|
.flake-profile
|
|
|
|
# contrib
|
|
go.sum
|