-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(s2n-quic-dc): export event module (#2360)
- Loading branch information
Showing
14 changed files
with
809 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[event("application:write")] | ||
pub struct ApplicationWrite { | ||
/// The number of bytes that the application tried to write | ||
len: usize, | ||
} | ||
|
||
#[event("application:write")] | ||
pub struct ApplicationRead { | ||
/// The number of bytes that the application tried to read | ||
len: usize, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[event("endpoint:initialized")] | ||
#[subject(endpoint)] | ||
struct EndpointInitialized<'a> { | ||
acceptor_addr: SocketAddress<'a>, | ||
handshake_addr: SocketAddress<'a>, | ||
tcp: bool, | ||
udp: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[cfg(any(test, feature = "testing"))] | ||
use s2n_quic_core::event::snapshot; | ||
|
||
pub use s2n_quic_core::event::{Event, IntoEvent, Timestamp}; | ||
|
||
mod generated; | ||
pub use generated::*; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.