-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[QUIC] API Update #49823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUIC] API Update #49823
Changes from 1 commit
6bf36e4
e96522e
b92bd1d
7aa745c
6a132c5
1d0d98c
68a5c48
851dc1b
78e3981
7ad5163
f67ed0d
204f4fa
72ea176
5d3884f
c0f896f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,18 +193,17 @@ internal enum QuicSettingsEnabledFlagsFlags : byte | |
| VersionNegotiationExtEnabled = 1 << 6, | ||
| } | ||
|
|
||
| // Mana: get back to this, define delegate for AsyncHandler, define types fro IntPtr Certificate (union in C, plat dependent) and | ||
| // make proper use of it. | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct CredentialConfig | ||
| { | ||
| internal QUIC_CREDENTIAL_TYPE Type; | ||
| internal QUIC_CREDENTIAL_FLAGS Flags; | ||
| // CredentialConfigCertificateUnion* | ||
| internal IntPtr Certificate; | ||
| [MarshalAs(UnmanagedType.LPUTF8Str)] | ||
| internal string Principal; | ||
| internal IntPtr Reserved; // Currently unused | ||
| // Mana: define delegate for the async callback | ||
| // TODO: define delegate for AsyncHandler and make proper use of it. | ||
| internal IntPtr AsyncHandler; | ||
| } | ||
|
|
||
|
|
@@ -361,10 +360,10 @@ internal struct ConnectionEventDataShutdownInitiatedByPeer | |
| internal ulong ErrorCode; | ||
| } | ||
|
|
||
| // Mana: it's a trap, those are flags with fixed sized exactly 3 bits!!! | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct ConnectionEventDataShutdownComplete | ||
| { | ||
| // The flags have fixed sized exactly 3 bits | ||
| internal ConnectionEventDataShutdownCompleteFlags Flags; | ||
| } | ||
|
|
||
|
|
@@ -431,7 +430,7 @@ internal struct ConnectionEventDataUnion | |
| [FieldOffset(0)] | ||
| internal ConnectionEventDataStreamsAvailable StreamsAvailable; | ||
|
|
||
| // Mana: missing IDEAL_PROCESSOR_CHANGED, ..., PEER_CERTIFICATE_RECEIVED (7 total) | ||
| // TODO: missing IDEAL_PROCESSOR_CHANGED, ..., PEER_CERTIFICATE_RECEIVED (7 total) | ||
| } | ||
|
|
||
| [StructLayout(LayoutKind.Sequential)] | ||
|
|
@@ -447,7 +446,7 @@ internal delegate uint ConnectionCallbackDelegate( | |
| IntPtr context, | ||
| ref ConnectionEvent connectionEvent); | ||
|
|
||
| // Mana: order is Open, Close, Shutdown, Start, SetConfiguration, SendResumptionTicket | ||
| // TODO: order is Open, Close, Shutdown, Start, SetConfiguration, SendResumptionTicket | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be removed now?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, that's my comment. The order (in the comment) is taken from msquic.h, we do not follow that in here. I didn't want to generate more diffs in this PR. I'll plan to do follow up that does not change the behavior at all, just shuffles things around to be more like msquic.h. |
||
| [UnmanagedFunctionPointer(CallingConvention.Cdecl)] | ||
| internal delegate uint ConnectionOpenDelegate( | ||
| SafeMsQuicRegistrationHandle registration, | ||
|
|
@@ -536,7 +535,7 @@ internal struct StreamEventDataUnion | |
| [FieldOffset(0)] | ||
| internal StreamEventDataSendShutdownComplete SendShutdownComplete; | ||
|
|
||
| // Mana: missing IDEAL_SEND_BUFFER_SIZE | ||
| // TODO: missing IDEAL_SEND_BUFFER_SIZE | ||
| } | ||
|
|
||
| [StructLayout(LayoutKind.Sequential)] | ||
|
|
@@ -546,7 +545,7 @@ internal struct StreamEvent | |
| internal StreamEventDataUnion Data; | ||
| } | ||
|
|
||
| // Mana: rename to C#-like | ||
| // TODO: rename to C#-like | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct SOCKADDR_IN | ||
| { | ||
|
|
@@ -566,7 +565,7 @@ internal byte[] Address | |
| } | ||
| } | ||
|
|
||
| // Mana: rename to C#-like | ||
| // TODO: rename to C#-like | ||
| [StructLayout(LayoutKind.Sequential)] | ||
| internal struct SOCKADDR_IN6 | ||
| { | ||
|
|
@@ -604,7 +603,7 @@ internal byte[] Address | |
| } | ||
| } | ||
|
|
||
| // Mana: rename to C#-like | ||
| // TODO: rename to C#-like | ||
| [StructLayout(LayoutKind.Explicit)] | ||
| internal struct SOCKADDR_INET | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.