Show / Hide Table of Contents

# Class TcpDiscoveryMulticastIpFinder

Multicast-based IP finder.

When TCP discovery starts this finder sends multicast request and waits for some time when others nodes reply to this request with messages containing their addresses

##### Inheritance

System.Object
TcpDiscoveryIpFinderBase
TcpDiscoveryStaticIpFinder
TcpDiscoveryMulticastIpFinder

##### Implements

ITcpDiscoveryIpFinder

##### Inherited Members

TcpDiscoveryStaticIpFinder.Endpoints
TcpDiscoveryIpFinderBase.TypeCodeVmIpFinder
TcpDiscoveryIpFinderBase.TypeCodeMulticastIpFinder
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Discovery.Tcp.Multicast

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class TcpDiscoveryMulticastIpFinder : TcpDiscoveryStaticIpFinder, ITcpDiscoveryIpFinder

### Constructors

#### TcpDiscoveryMulticastIpFinder()

Initializes a new instance of the TcpDiscoveryMulticastIpFinder class.

##### Declaration

    public TcpDiscoveryMulticastIpFinder()

### Fields

#### DefaultAddressRequestAttempts

Default address request attempts.

##### Declaration

    public const int DefaultAddressRequestAttempts = 2

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultMulticastGroup

Default multicast group.

##### Declaration

    public const string DefaultMulticastGroup = "228.1.2.4"

##### Field Value

Type | Description
--- | ---
System.String |

#### DefaultMulticastPort

Default multicast port.

##### Declaration

    public const int DefaultMulticastPort = 47400

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultResponseTimeout

Default response timeout.

##### Declaration

    public static readonly TimeSpan DefaultResponseTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

### Properties

#### AddressRequestAttempts

Gets or sets the number of attempts to send multicast address request. IP finder re-sends request only in case if no reply for previous request is received.

##### Declaration

    public int AddressRequestAttempts { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### LocalAddress

Gets or sets the local address. If provided address is non-loopback then multicast socket is bound to this interface. If local address is not set or is any local address then IP finder creates multicast sockets for all found non-loopback addresses.

##### Declaration

    public string LocalAddress { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### MulticastGroup

Gets or sets the IP address of the multicast group.

##### Declaration

    public string MulticastGroup { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### MulticastPort

Gets or sets the port number which multicast messages are sent to.

##### Declaration

    public int MulticastPort { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### ResponseTimeout

Gets or sets the response timeout.

##### Declaration

    public TimeSpan ResponseTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### TimeToLive

Gets or sets the time to live for multicast packets sent out on this IP finder in order to control the scope of the multicast.

##### Declaration

    public byte ? TimeToLive { get; set; }

##### Property Value

Type | Description
--- | ---
System.Nullable<System.Byte> |

#### TypeCode

Gets the type code to be used in Java to determine ip finder type.

##### Declaration

    protected override byte TypeCode { get; }

##### Property Value

Type | Description
--- | ---
System.Byte |

##### Overrides

TcpDiscoveryStaticIpFinder.TypeCode

### Implements

ITcpDiscoveryIpFinder