NetMQ.Core.Options.GetSocketOption C# (CSharp) Method

GetSocketOption() public method

Get the value of the specified option.
A valid option must be specified.
public GetSocketOption ( ZmqSocketOption option ) : object
option ZmqSocketOption a ZmqSocketOption that specifies what to get
return object
        public object GetSocketOption(ZmqSocketOption option)
        {
            switch (option)
            {
                case ZmqSocketOption.SendHighWatermark:
                    return SendHighWatermark;

                case ZmqSocketOption.ReceiveHighWatermark:
                    return ReceiveHighWatermark;

                case ZmqSocketOption.Affinity:
                    return Affinity;

                case ZmqSocketOption.Identity:
                    return Identity;

                case ZmqSocketOption.Rate:
                    return Rate;

                case ZmqSocketOption.RecoveryIvl:
                    return RecoveryIvl;

                case ZmqSocketOption.SendBuffer:
                    return SendBuffer;

                case ZmqSocketOption.ReceiveBuffer:
                    return ReceiveBuffer;

                case ZmqSocketOption.Type:
                    return SocketType;

                case ZmqSocketOption.Linger:
                    return Linger;

                case ZmqSocketOption.ReconnectIvl:
                    return ReconnectIvl;

                case ZmqSocketOption.ReconnectIvlMax:
                    return ReconnectIvlMax;

                case ZmqSocketOption.Backlog:
                    return Backlog;

                case ZmqSocketOption.MaxMessageSize:
                    return MaxMessageSize;

                case ZmqSocketOption.MulticastHops:
                    return MulticastHops;

#pragma warning disable 618
                case ZmqSocketOption.ReceiveTimeout:
                    return ReceiveTimeout;
#pragma warning restore 618

                case ZmqSocketOption.SendTimeout:
                    return SendTimeout;

                case ZmqSocketOption.IPv4Only:
                    return IPv4Only;

                case ZmqSocketOption.TcpKeepalive:
                    return TcpKeepalive;

                case ZmqSocketOption.DelayAttachOnConnect:
                    return DelayAttachOnConnect;

                case ZmqSocketOption.TcpKeepaliveIdle:
                    return TcpKeepaliveIdle;

                case ZmqSocketOption.TcpKeepaliveIntvl:
                    return TcpKeepaliveIntvl;

                case ZmqSocketOption.LastEndpoint:
                    return LastEndpoint;

                case ZmqSocketOption.Endian:
                    return Endian;

                case ZmqSocketOption.DisableTimeWait:
                    return DisableTimeWait;

                default:
                    throw new InvalidException("GetSocketOption called with invalid ZmqSocketOption of " + option);
            }
        }
    }