Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / apps / drwho / BS_Server.h
blobfefcc6f718e4348a346aa63139c05be0c336c2e8
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file BS_Server.h
7 * Provides the server's binary search lookup table abstraction.
9 * @author Douglas C. Schmidt
11 //=============================================================================
14 #ifndef _BS_SERVER_H
15 #define _BS_SERVER_H
17 #include "Binary_Search.h"
19 /**
20 * @class BS_Server
22 * @brief Provides the server's binary search lookup table abstraction.
24 class BS_Server : public Binary_Search
26 public:
27 // = Initialization.
28 BS_Server (const char *packet);
30 /**
31 * This function is used to merge the <key_name> from server
32 * <host_name> into the sorted list of userids kept on the client's
33 * side.
35 virtual Protocol_Record *insert (const char *key_name,
36 int max_len = MAXUSERIDNAMELEN);
38 /**
39 * An iterator, similar to Binary_Search::get_next_friend, though in
40 * this case the friend records are returned in the order they
41 * appeared in the friend file, rather than in sorted order. Also,
42 * we skip over entries that don't have any hosts associated with
43 * them.
45 virtual Protocol_Record *get_next_entry ();
48 #endif /* _BS_SERVER_H */