// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package jcademo.raoutbound.natmultcp;

public class NatMulTCP {
	static {
		try {
			System.loadLibrary("NatMulTCP");
		} catch(Throwable t) {
			t.printStackTrace();
		}
	}
	native public static long open(String host, int port);
	native public static boolean send(long sd, String msg);
	native public static String receive(long sd);
	native public static void close(long sd);
}
