示例#1
0
 private void SetParam(
     QUIC_PARAM_CONN param,
     QuicBuffer buf)
 {
     MsQuicStatusException.ThrowIfFailed(_api.UnsafeSetParam(
                                             _nativeObjPtr,
                                             (uint)QUIC_PARAM_LEVEL.CONNECTION,
                                             (uint)param,
                                             buf));
 }
示例#2
0
        private unsafe void SetUshortParamter(QUIC_PARAM_CONN param, ushort count)
        {
            var buffer = new QuicBuffer()
            {
                Length = sizeof(ushort),
                Buffer = (byte *)&count
            };

            SetParam(param, buffer);
        }