solaris does have these afterall.
svn path=/trunk/mono/; revision=2449
getprotobyname() and caching the values (because this could be a
slow operation).
(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
- Don't attempt to add or drop memberships unless the system
- supports it. Also use the appropriate struct when the system does
- support it. Ie, not all systems have struct ip_mreqn so use struct
- ip_mreq when appropriate.
+ Use the appropriate struct when the system does support it. Ie,
+ not all systems have struct ip_mreqn so use struct ip_mreq when
+ appropriate.
Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
ret=setsockopt(sock, system_level, system_name,
&linger, valsize);
break;
-#ifdef HAVE_IP_ADD_MEMBERSHIP
case SocketOptionName_AddMembership:
-#endif
-#ifdef HAVE_IP_DROP_MEMBERSHIP
case SocketOptionName_DropMembership:
-#endif
-#if defined (HAVE_IP_ADD_MEMBERSHIP) || defined (HAVE_IP_DROP_MEMBERSHIP)
{
#ifdef HAVE_STRUCT_IP_MREQN
struct ip_mreqn mreq;
&mreq, sizeof (mreq));
break;
}
-#endif /* HAVE_IP_[ADD,DROP]_MEMBERSHIP */
default:
/* Throw an exception */
mono_raise_exception(get_socket_exception(WSAEINVAL));