Java Socket Address Get isValidMulticastAddress(final InetSocketAddress address)

Here you can find the source of isValidMulticastAddress(final InetSocketAddress address)

Description

is Valid Multicast Address

License

BSD License

Declaration

public static boolean isValidMulticastAddress(final InetSocketAddress address) 

Method Source Code

//package com.java2s;
/**//from w  w  w .  j  a  v a 2 s  .co m
 * Copyright (C) 2011-2014 Barchart, Inc. <http://www.barchart.com/>
 *
 * All rights reserved. Licensed under the OSI BSD License.
 *
 * http://www.opensource.org/licenses/bsd-license.php
 */

import java.net.InetSocketAddress;

public class Main {
    public static boolean isValidMulticastAddress(final InetSocketAddress address) {
        return address != null && address.getAddress() != null && address.getAddress().isMulticastAddress();
    }
}

Related

  1. isLegalPeerAddress(@CheckForNull SocketAddress socketAddress)
  2. isLocalAddress(Socket socket)
  3. isSameAddress(SocketAddress a1, SocketAddress a2)
  4. isUdpPortAvailable(InetSocketAddress localAddress)
  5. isUnresolved(SocketAddress address)
  6. normalizeSocketAddr(InetSocketAddress address)
  7. parseAddress(SocketAddress address)
  8. parseInetSocketAddress(String address)
  9. parseInetSocketAddress(String endPoint)