// Path: src/at/fhooe/mcm14/damn/objects/MessageObject.java
// public class MessageObject {
// 	public Code code;
// 	public String payload;
// 	public String app;
// 	public long threadId;
// 	
// 	public MessageObject(Code _code, String _payload, String _app, long _threadId) {
// 		code = _code;
// 		payload = _payload;
// 		app = _app;
// 		threadId = _threadId;
// 	}
// }


import android.util.Log;
import at.fhooe.mcm14.damn.objects.MessageObject;
		return stopServerJNI();
	}
	
	/**
	 * Return the count of connected clients.
	 * 
	 * @return count of connected clients
	 */
	public static int getConnections() {
		return getConnectionsJNI();
	}
	
	/**
	 * Blocking till a state change of the server occur and return it.
	 * 
	 * @return actual state of the server
	 */
	public static ServerState getStateBlocking() {
		return ServerState.values()[getStateBlockingJNI()];
	}
	
	/**
	 * Return the actual state of the server.
	 * 
	 * @return actual state of the server
	 */
	public static ServerState getState() {
		return ServerState.values()[getStateJNI()];
	}
	
// Path: src/at/fhooe/mcm14/damn/objects/MessageObject.java
// public class MessageObject {
// 	public Code code;
// 	public String payload;
// 	public String app;
// 	public long threadId;
// 	
// 	public MessageObject(Code _code, String _payload, String _app, long _threadId) {
// 		code = _code;
// 		payload = _payload;
// 		app = _app;
// 		threadId = _threadId;
// 	}
// }


// Path: src/at/fhooe/mcm14/damn/jni/DAMNServer.java
import android.util.Log;
import at.fhooe.mcm14.damn.objects.MessageObject;

		return stopServerJNI();
	}
	
	/**
	 * Return the count of connected clients.
	 * 
	 * @return count of connected clients
	 */
	public static int getConnections() {
		return getConnectionsJNI();
	}
	
	/**
	 * Blocking till a state change of the server occur and return it.
	 * 
	 * @return actual state of the server
	 */
	public static ServerState getStateBlocking() {
		return ServerState.values()[getStateBlockingJNI()];
	}
	
	/**
	 * Return the actual state of the server.
	 * 
	 * @return actual state of the server
	 */
	public static ServerState getState() {
		return ServerState.values()[getStateJNI()];
	}
	
	public synchronized static void push(MessageObject msg) {