* @see Host.getByName().
*/
public long bind;
-
+ /**
+ * Host name
+ */
+ private String name;
/**
* User data.
* This static method returns the count of the installed hosts.
*
* @return The count of the installed hosts.
- * FIXME: Not implemented... ?
+ * FIXME: Not implemented.
*/
public native static int getCount();
* @return An array containing all the hosts installed.
*
*/
- public static Host[] all() {
- return MsgNative.allHosts();
- }
+ public native static Host[] all();
/**
* This method returns the name of a host.
- *
* @return The name of the host.
*
*/
- public native String getName();
+ public String getName() {
+ return name;
+ }
/**
* Sets the data of the host.
- *
- *
* @param data
*/
public void setData(Object data) {
this.data = data;
}
/**
- * Gets the data of the host.
+ * Gets the d ata of the host.
*
* @return
*/
*/
public native boolean isAvail();
-
+ /**
+ * Class initializer, to initialize various JNI stuff
+ */
+ public static native void nativeInit();
+ static {
+ nativeInit();
+ }
}