Skip to content

Instantly share code, notes, and snippets.

@peterbudai
Last active June 25, 2019 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbudai/1668d614165637110e2a3682dcc65bce to your computer and use it in GitHub Desktop.
Save peterbudai/1668d614165637110e2a3682dcc65bce to your computer and use it in GitHub Desktop.
Rust struct defining the Dropbox LAN sync protocol beacon packet for deserialization with Serde JSON
#[derive(Deserialize)]
struct BeaconPacket {
host_int: u128,
version: Vec<usize>,
displayname: String,
port: u16,
namespaces: Vec<u128>,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment