Internet Direct (Indy)
Home
PreviousUpNext
TIdStack.AddMulticastMembership Method

Specifies the interface used to allow a socket to join a multicast group address.

Pascal
procedure AddMulticastMembership(
    AHandle: TIdStackSocketHandle; 
    const AGroupIP: String; 
    const ALocalIP: String; 
    const AIPVersion: TIdIPVersion = ID_DEFAULT_IP_VERSION
); virtual; abstract;
Parameters 
Description 
AHandle 
Handle for the socket joining the multicast group address.
 
AGroupIP 
IP address for the IP multicast group.
 
ALocalIP 
IP address for the network adapter on the local system.
 
AIPVersion 
IP address family supported for the socket transport. Default value is ID_DEFAULT_IP_VERSION

AddMulticastMembership is an abstract virtual method that specifies the interface used to allow a socket to join a multicast group address. AddMulticastMembership must be overridden and implemented in a descendant class that provides access to the protocol stack implmentation for the operating system or platform hosting the Indy library. 

Use DropMulticastMembership to remove the local IP address from the multicast group.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.