Freigeben über


IPPROTO_IP (Windows CE 5.0)

Send Feedback

The following table describes IPPROTO_IP Socket Options. See the getsockopt and setsockopt function reference pages for more information on getting and setting socket options. To enumerate protocols and discover supported properties for each installed protocol, use the WSAEnumProtocols function.

Note   In Windows CE, these values are defined in Ws2tcpip.h. You must include this header for applications that call getsockopt or setsockopt on Windows CE-based devices.

Some socket options require more explanation than these tables can convey; such options contain links to additional pages.

IPPROTO_IP

Option get/set Optval type Description
IP_ADD_MEMBERSHIP set struct ip_mreq Joins the socket to multicast group on the specified interface.
IP_DROP_MEMBERSHIP set struct ip_mreq Leaves the specified multicast group from the specified interface. Service providers must support this option when multicast is supported. Support is indicated in the WSAPROTOCOL_INFO structure returned by a WSAEnumProtocols function call with the following: XPI_SUPORTS_MULTIPOINT=1, XP1_MULTIPOINT_CONTROL_PLANE=0, XP1_MULTIPOINT_DATA_PLANE=0.
IP_MULTICAST_IF both DWORD Sets the outgoing (IPv4) interface for multicast traffic. Important for multihomed machines. The input value is the 4-byte network byte order IPv4 address. If optval is null, the default interface is used.
IP_MULTICAST_TTL both DWORD Sets/gets the TTL value associated with IP multicast traffic on the socket.

See Also

Socket Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.