// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public final class MIDIConstants {
//     public static final String RINFO_NAME = "name";
//     public static final String RINFO_PORT = "port";
//     public static final String RINFO_ADDR = "address";
//     public static final String RINFO_RECON = "reconnect";
//     public static final String RINFO_FAIL = "failed";
// 
//     public static final String MSG_COMMAND = "command";
//     public static final String MSG_CHANNEL = "channel";
//     public static final String MSG_NOTE = "note";
//     public static final String MSG_VELOCITY = "velocity";
// }


import android.os.Bundle;
import com.disappointedpig.midi.MIDIConstants;
import java.net.DatagramPacket;
import java.net.InetAddress;
package com.disappointedpig.midi.internal_events;




public class PacketEvent {
    private InetAddress address;
    private int port;
    private byte[] data;
    private int length;
    public PacketEvent(final DatagramPacket packet) {
        address = packet.getAddress();
        port = packet.getPort();
        data = packet.getData();
        length = packet.getLength();
//        Log.d("PacketEvent"," p:"+packet.getLength()+ " d:"+data.length);
    }

    public Bundle getRInfo() {
        Bundle rinfo = new Bundle();
// Path: midi/src/main/java/com/disappointedpig/midi/MIDIConstants.java
// public final class MIDIConstants {
//     public static final String RINFO_NAME = "name";
//     public static final String RINFO_PORT = "port";
//     public static final String RINFO_ADDR = "address";
//     public static final String RINFO_RECON = "reconnect";
//     public static final String RINFO_FAIL = "failed";
// 
//     public static final String MSG_COMMAND = "command";
//     public static final String MSG_CHANNEL = "channel";
//     public static final String MSG_NOTE = "note";
//     public static final String MSG_VELOCITY = "velocity";
// }


// Path: midi/src/main/java/com/disappointedpig/midi/internal_events/PacketEvent.java
import android.os.Bundle;
import com.disappointedpig.midi.MIDIConstants;
import java.net.DatagramPacket;
import java.net.InetAddress;

package com.disappointedpig.midi.internal_events;




public class PacketEvent {
    private InetAddress address;
    private int port;
    private byte[] data;
    private int length;
    public PacketEvent(final DatagramPacket packet) {
        address = packet.getAddress();
        port = packet.getPort();
        data = packet.getData();
        length = packet.getLength();
//        Log.d("PacketEvent"," p:"+packet.getLength()+ " d:"+data.length);
    }

    public Bundle getRInfo() {
        Bundle rinfo = new Bundle();
        rinfo.putString(com.disappointedpig.midi.MIDIConstants.RINFO_ADDR,address.getHostAddress());