Closed Bug 1791834 Opened 2 years ago Closed 1 year ago

Implement sending and receiving datagrams in necko

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: kershaw, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files)

To implement sending datagrams, the following functions will be implemented.

  • WebTransportSession::SendDatagram
    This function should be only called on the socket thread and will ulilize the functions from neqo_glue to forward datagrams to neqo.
  • WebTransportSessionProxy::SendDatagram
    This function implements the nsIWebtransport::SendDatagram and can be called on any thread. When this function is called, we’ll dispatch a task to call - WebTransportSession::SendDatagram on the socket thread.
  • WebTransportParent::RecvSendDatagram
    This function is part of the IPDL bridge. Called when the parent process receives the “SendDatagram” IPC message.

To implement receiving datagrams, the following functions will be implemented.

  • WebTransportSessionProxy::OnDatagramReceived
    This function is called when WebTransportSession receives a datagram.
  • WebTransportParent::OnDatagramReceived
    This function implements the function OnDatagramReceived defined in WebTransportSessionEventListener interface.
    WebTransportParent::SendOnDatagramReceived will be called inside this function to forward the datagram to the child process.
  • WebTransportChild::RecvOnDatagramReceived
    Called when receiveing a datagram IPC message from the parent process.
  • WebTransport::OnDatagramReceived
    Called by WebTransportChild::RecvOnDatagramReceived to indicate that a new datagram is received.
Assignee: nobody → kershaw
Status: NEW → ASSIGNED
Pushed by kjang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cdc20e405953
Implement WebTransport Datagram, r=necko-reviewers,jesup
https://hg.mozilla.org/integration/autoland/rev/122cab616d1c
Fix rustfmt warnings, r=necko-reviewers,valentin
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: