Ejemplo n.º 1
0
        public unsafe PosixResult TryGetSocketOption(int level, int optname, ref int value)
        {
            int       v      = 0;
            socklen_t length = 4;
            var       rv     = SocketInterop.GetSockOpt(this, level, optname, (byte *)&v, &length);

            if (rv.IsSuccess)
            {
                value = v;
            }
            return(rv);
        }