Code example for LocalSocketAddress

0
 
public class ServalDMonitor implements Runnable {
	private LocalSocket socket = null;
	private LocalSocketAddress serverSocketAddress = new LocalSocketAddress(
			"org.servalproject.servald.monitor.socket", 
			LocalSocketAddress.Namespace.ABSTRACT);
 
	// 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;