stubs for people using this on the server, the functionality is still not totally speced out on the server side (like exactly the format that the metadata is going to be in (it's a string for now) but i'll iron this out later this weekend)

brs2001 [2002-04-12 20:02:26]
stubs for people using this on the server, the functionality is still not totally speced out on the server side (like exactly the format that the metadata is going to be in (it's a string for now) but i'll iron this out later this weekend)
Filename
di_java/DIEvent.java
di_java/DIEventReceiver.java
di_java/DIHost.java
di_java/DIMessage.java
di_java/DIMessageBody.java
di_java/DIType.java
di_java/DIZone.java
di_java/DirectoryInterface.java
diff --git a/di_java/DIEvent.java b/di_java/DIEvent.java
new file mode 100644
index 0000000..182870f
--- /dev/null
+++ b/di_java/DIEvent.java
@@ -0,0 +1,9 @@
+package di_java;
+
+public class DIEvent
+{
+    public DIEvent()
+    {
+
+    }
+}
diff --git a/di_java/DIEventReceiver.java b/di_java/DIEventReceiver.java
new file mode 100644
index 0000000..cf06bc5
--- /dev/null
+++ b/di_java/DIEventReceiver.java
@@ -0,0 +1,8 @@
+package di_java;
+
+interface DIEventReceiver
+{
+    public void receiveEvent( DIEvent event );
+    public void receiveResult( DIHost result );
+    public void receiveMessage( DIMessage msg );
+}
diff --git a/di_java/DIHost.java b/di_java/DIHost.java
new file mode 100644
index 0000000..89dadac
--- /dev/null
+++ b/di_java/DIHost.java
@@ -0,0 +1,50 @@
+package di_java;
+
+public class DIHost
+{
+    public DIHost( int setIdent, DIType setType, String setInfo, int length,
+		   int setMode )
+    {
+
+    }
+
+    public void setHostType( DIType setType )
+    {
+
+    }
+
+    public void setHostInfo( String setInfo, int length )
+    {
+
+    }
+
+    public void setHostID( int setIdent )
+    {
+
+    }
+
+    public void setHostMode( int setMode )
+    {
+
+    }
+
+    public DIType getHostType()
+    {
+	return null;
+    }
+
+    public String getHostInfo()
+    {
+	return null;
+    }
+
+    public int getHostMode()
+    {
+	return 0;
+    }
+
+    public int getHostID()
+    {
+	return 0;
+    }
+}
diff --git a/di_java/DIMessage.java b/di_java/DIMessage.java
new file mode 100644
index 0000000..d464b73
--- /dev/null
+++ b/di_java/DIMessage.java
@@ -0,0 +1,24 @@
+package di_java;
+
+public class DIMessage
+{
+    public DIMessage( DIType setType, DIMessageBody setBody, DIHost sender )
+    {
+
+    }
+
+    public DIType getType()
+    {
+	return null;
+    }
+
+    public DIMessageBody getBody()
+    {
+	return null;
+    }
+
+    public DIHost getSender()
+    {
+	return null;
+    }
+}
diff --git a/di_java/DIMessageBody.java b/di_java/DIMessageBody.java
new file mode 100644
index 0000000..5476031
--- /dev/null
+++ b/di_java/DIMessageBody.java
@@ -0,0 +1,14 @@
+package di_java;
+
+public class DIMessageBody
+{
+    public DIMessageBody( String msgData, int length )
+    {
+
+    }
+
+    String getData()
+    {
+	return null;
+    }
+}
diff --git a/di_java/DIType.java b/di_java/DIType.java
new file mode 100644
index 0000000..139d2fe
--- /dev/null
+++ b/di_java/DIType.java
@@ -0,0 +1,11 @@
+package di_java;
+
+public class DIType
+{
+    public DIType( String setType )
+    {
+
+    }
+
+    public int type;
+}
diff --git a/di_java/DIZone.java b/di_java/DIZone.java
new file mode 100644
index 0000000..616431c
--- /dev/null
+++ b/di_java/DIZone.java
@@ -0,0 +1,9 @@
+package di_java;
+
+public class DIZone
+{
+    public DIZone( String setAddress, int setPort, int setMode )
+    {
+
+    }
+}
diff --git a/di_java/DirectoryInterface.java b/di_java/DirectoryInterface.java
new file mode 100644
index 0000000..8d8da27
--- /dev/null
+++ b/di_java/DirectoryInterface.java
@@ -0,0 +1,65 @@
+package di_java;
+
+public class DirectoryInterface
+{
+    public static void initialize()
+    {
+
+    }
+
+    public static void shutdown()
+    {
+
+    }
+
+    public static void connect( String address, int port, int mode )
+    {
+
+    }
+
+    public static void disconnect( DIZone disZone )
+    {
+
+    }
+
+    public static void update( DIType hostType, String metainfo, int length )
+    {
+
+    }
+
+    public static void search( DIEventReceiver receiver, DIType searchType )
+    {
+
+    }
+
+    public static void subscribe( DIEventReceiver receiver, DIType subType )
+    {
+
+    }
+
+    public static void unsubscribe( DIEventReceiver receiver, DIType subType )
+    {
+
+    }
+
+    public static void publish( DIType msgType, DIMessageBody msgBody )
+    {
+
+    }
+
+    public static void communicate( DIHost comHost, DIType msgType,
+				    DIMessageBody msgBody )
+    {
+
+    }
+
+    public static void promote()
+    {
+
+    }
+
+    public static void demote()
+    {
+
+    }
+}