Code example for LocalSocketAddress

0
 
	// Use a filesystem binding point from inside our app dir at our end, 
	// so that no one other than the server can send us messages. 
	private LocalSocketAddress clientSocketAddress = new LocalSocketAddress(
			"/data/data/org.servalproject/var/serval-node/servald-java-client.socket", 
			LocalSocketAddress.Namespace.FILESYSTEM);
 
	private OutputStream os = null;
	private InputStream is = null;
	private boolean stopMe = false;
	// WARNING, absolutely kills phone calls logging every audio packet in both 
	// directions 
	private boolean logMessages = false;
 
	int dataBytes = 0;
	private Messages messages;
 
	public static final int MONITOR_VOMP = (1 << 0);
	public static final int MONITOR_RHIZOME = (1 << 1);
	public static final int MONITOR_PEERS = (1 << 2);
	public static final int MONITOR_DNAHELPER = (1 << 3);