rust-lang / rust-lang/socket2

Socket Timestamping Support

Open
#415 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
870
Forks
305
PR merge metrics
No merged PRs in 30d

Description

Windows and Linux both provide methods for retrieving the timestamp at which a packet was received by the system, which is pretty handy for anything involving clock synchronization or RTT calculation.

Windows documentation: https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-timestamping
Linux documentation: https://docs.kernel.org/networking/timestamping.html

It would be great if socket2 could implement support for gathering this data from its sockets, especially UDP sockets.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Windows Winsock timestamping and Linux kernel networking timestamping documentation, then inspect socket2's socket and UDP receive APIs to find the relevant entry points. Define how timestamp data should be exposed across both platforms; done means socket2 can gather packet-receipt timestamps from its sockets, especially UDP sockets, on Windows and Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.