+++ /dev/null
-package uk.org.distorted.tripe;
-
-class JNI {
- static { System.loadLibrary("toy"); }
- static class NativeObjectTypeException extends RuntimeException {
- NativeObjectTypeException() { super(); }
- NativeObjectTypeException(String msg) { super(msg); }
- }
-
- static final int CF_CLOSERD = 1, CF_CLOSEWR = 2;
- static final int CF_CLOSEMASK = CF_CLOSERD | CF_CLOSEWR;
-
- static native void test();
-
- static native Object make();
- static native void check(Object toy);
-
- static native Object connect();
- static native void send(Object conn, byte[] buf, int start, int len);
- static native int recv(Object conn, byte[] buf, int start, int len);
- static native void close(Object conn, int how);
-}