Download Evaluate/projects/libp2p/rust/protocols/dcutr/src/generated/message.proto from SYSUSELab/RustRepoTrans: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Evaluate/projects/libp2p/rust/protocols/dcutr/src/generated/message.proto
- Command line
-
hf download hf://datasets/SYSUSELab/RustRepoTrans/Evaluate/projects/libp2p/rust/protocols/dcutr/src/generated/message.proto
-
curl -L -o message.proto https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Evaluate/projects/libp2p/rust/protocols/dcutr/src/generated/message.proto
588 Bytes
| syntax = "proto2"; | |
| package holepunch.pb; | |
| message HolePunch { | |
| enum Type { | |
| CONNECT = 100; | |
| SYNC = 300; | |
| } | |
| required Type type=1; | |
| // For hole punching, we'll send some additional observed addresses to the remote peer | |
| // that could have been filtered by the Host address factory (for example: AutoRelay removes all public addresses if peer has private reachability). | |
| // This is a hack! | |
| // We plan to have a better address discovery and advertisement mechanism in the future. | |
| // See https://github.com/libp2p/go-libp2p-autonat/pull/98 | |
| repeated bytes ObsAddrs = 2; | |
| } | |