Multicast.this

Create a read/write multicast socket

This flavour is necessary only for a multicast receiver (e.g. use this ctor in conjunction with SocketListener).

You should specify both a group address and a port to listen upon. The resultant socket will be bound to the specified port (locally), and listening on the class-D address. Expect this to fail without a network adapter present, as bind() will not find anything to work with.

The reuse parameter dictates how to behave when the port is already in use. Default behaviour is to throw an IO exception, and the alternate is to force usage.

To become eligible for incoming group datagrams, you must also invoke the join() method

  1. this()
  2. this(InternetAddress group, bool reuse)
    class Multicast
    this
    (
    InternetAddress group
    ,
    bool reuse = false
    )

Meta