Closed Bug 1790418 Opened 2 years ago Closed 2 years ago

nsIWebTransportBidirectionalStream implementation

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: kershaw, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

When receiving a new incoming stream from server, the function OnIncomingBidirectionalStreamAvailable or OnIncomingUnidirectionalStreamAvailable should be called.

// Events related to a WebTransport session.
interface WebTransportSessionEventListener {
  // This is used to let the consumer of nsIWebTransport know that the
  // underlying WebTransportSession object is ready to use.
  void OnSessionReady(in uint64_t aSessionId);
  // This is used internally to pass the reference of WebTransportSession
  // object to WebTransportSessionProxy.
  void OnSessionReadyInternal(in WebTransportSession aSession);
  void OnSessionClosed(in uint32_t aErrorCode,
                       in ACString aReason);

  // When a new stream has been received.
  void OnIncomingBidirectionalStreamAvailable(in nsIWebTransportBidirectionalStream aStream);
  void OnIncomingUnidirectionalStreamAvailable(in nsIWebTransportReceiveStream aStream);

  // When a new datagram has been received.
  void OnDatagramReceived(in AUTF8String aDatagram);

  void OnStatsAvailable(in WebTransportStats aStats);
};

Summary: Incoming WebTransportStream management → nsIWebTransportBidirectionalStream implementation
Assignee: nobody → kershaw
Status: NEW → ASSIGNED
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b39337257b7 Implement nsIWebTransportBidirectionalStream, r=necko-reviewers,valentin
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: