public void read(MulticastSocket msocket, byte[] inbuf) {
    try {
        DatagramPacket packet = new DatagramPacket(inbuf, inbuf.length);

        // Wait for packet

        // Data is now in inbuf
        int numBytesReceived = packet.getLength();
    } catch (IOException e) {

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.