summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/BS_Server.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/apps/drwho/BS_Server.h')
-rw-r--r--ACE/apps/drwho/BS_Server.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/ACE/apps/drwho/BS_Server.h b/ACE/apps/drwho/BS_Server.h
new file mode 100644
index 00000000000..3c7c1a82afc
--- /dev/null
+++ b/ACE/apps/drwho/BS_Server.h
@@ -0,0 +1,47 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// drwho
+//
+// = FILENAME
+// BS_Server.h
+//
+// = DESCRIPTION
+// Provides the server's binary search lookup table abstraction.
+//
+// = AUTHOR
+// Douglas C. Schmidt
+//
+// ============================================================================
+
+#ifndef _BS_SERVER_H
+#define _BS_SERVER_H
+
+#include "Binary_Search.h"
+
+class BS_Server : public Binary_Search
+{
+ // = TITLE
+ // Provides the server's binary search lookup table abstraction.
+public:
+ // = Initialization.
+ BS_Server (const char *packet);
+
+ virtual Protocol_Record *insert (const char *key_name,
+ int max_len = MAXUSERIDNAMELEN);
+ // This function is used to merge the <key_name> from server
+ // <host_name> into the sorted list of userids kept on the client's
+ // side.
+
+ virtual Protocol_Record *get_next_entry (void);
+ // An iterator, similar to Binary_Search::get_next_friend, though in
+ // this case the friend records are returned in the order they
+ // appeared in the friend file, rather than in sorted order. Also,
+ // we skip over entries that don't have any hosts associated with
+ // them.
+};
+
+#endif /* _BS_SERVER_H */