summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/SL_Server.cpp
blob: 7dc172deb085ec6712fb781dea8af5be0ee45c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// $Id$

#include "global.h"
#include "SL_Server.h"
#include "ace/OS_NS_string.h"

SL_Server::SL_Server (const char *usr_name)
  : Single_Lookup (usr_name)
{
}

Protocol_Record *
SL_Server::get_each_entry (void)
{
  Protocol_Record *prp = Single_Lookup::get_each_entry ();
  return prp->get_drwho_list () == 0 ? 0 : prp;
}

Protocol_Record *
SL_Server::insert (const char *key_name, int max_len)
{
  return ACE_OS::strncmp (key_name,
                          this->prp_->get_login (),
                          max_len) == 0 ? this->prp_ : 0;
}