int level = mapSocketOptionLevel(opt);
int name = mapSocketOptionName(opt);
Object obj = fd.getSocket().GetSocketOption(SocketOptionLevel.wrap(level), SocketOptionName.wrap(name));
if (obj instanceof LingerOption)
{
LingerOption lo = (LingerOption)obj;
return lo.get_Enabled() ? lo.get_LingerTime() : -1;
}
return CIL.unbox_int(obj);
}
catch (cli.System.Net.Sockets.SocketException x)
{