public object GetSocketOptionX(ZmqSocketOption option)
{
CheckContextTerminated();
if (option == ZmqSocketOption.ReceiveMore)
{
return m_rcvMore;
}
if (option == ZmqSocketOption.Handle)
{
return m_mailbox.Handle;
}
if (option == ZmqSocketOption.Events)
{
try
{
ProcessCommands(0, false);
}
catch (TerminatingException)
{
return -1;
}
PollEvents val = 0;
if (HasOut())
val |= PollEvents.PollOut;
if (HasIn())
val |= PollEvents.PollIn;
return val;
}
// If the socket type doesn't support the option, pass it to
// the generic option parser.
return m_options.GetSocketOption(option);
}