Пример #1
0
        private unsafe void SetUshortParameter(QUIC_PARAM_SESSION param, ushort count)
        {
            var buffer = new MsQuicNativeMethods.QuicBuffer()
            {
                Length = sizeof(ushort),
                Buffer = (byte *)&count
            };

            SetParam(param, buffer);
        }
Пример #2
0
 private void SetParam(
     QUIC_PARAM_SESSION param,
     MsQuicNativeMethods.QuicBuffer buf)
 {
     MsQuicStatusException.ThrowIfFailed(_registration.UnsafeSetParam(
                                             _nativeObjPtr,
                                             (uint)QUIC_PARAM_LEVEL.SESSION,
                                             (uint)param,
                                             buf));
 }
Пример #3
0
 private void SetParam(
     QUIC_PARAM_SESSION param,
     MsQuicNativeMethods.QuicBuffer buf)
 {
     QuicExceptionHelpers.ThrowIfFailed(MsQuicApi.Api.UnsafeSetParam(
                                            _nativeObjPtr,
                                            (uint)QUIC_PARAM_LEVEL.SESSION,
                                            (uint)param,
                                            buf),
                                        "Could not set parameter on session.");
 }