Beginning code to construct and send packets in JNI