// stops the background activity of this object and drops the connection
// to the client.
void croak() {
-// FUNCDEF("croak");
+ FUNCDEF("croak");
_grabber.stop();
int actions = 0;
while (get_incoming_data(actions)) {
_parent(parent) {}
void perform_activity(void *formal(ptr)) {
-// FUNCDEF("perform_activity");
+ FUNCDEF("perform_activity");
_parent.drop_dead_clients();
}
_parent(parent) {}
void perform_activity(void *formal(ptr)) {
-// FUNCDEF("perform_activity");
+ FUNCDEF("perform_activity");
_parent.look_for_clients(*this);
}
_default_security(new cromp_security),
_security_arm(NIL)
{
-// FUNCDEF("constructor");
+ FUNCDEF("constructor");
}
cromp_server::~cromp_server()
void cromp_server::disable_servers()
{
-// FUNCDEF("disable_servers");
+ FUNCDEF("disable_servers");
if (!_enabled) return;
_dropper->stop(); // signal the thread to leave when it can.
_accepters->stop_all(); // signal the accepting threads to exit.
bool cromp_server::disconnect_entity(const octopus_entity &id)
{
-// FUNCDEF("disconnect_entity");
+ FUNCDEF("disconnect_entity");
if (!_enabled) return false;
LOCK_LISTS;
int indy = _clients->find(id);
bool cromp_server::find_entity(const octopus_entity &id,
internet_address &found)
{
-// FUNCDEF("find_entity");
+ FUNCDEF("find_entity");
if (!_enabled) return false;
found = internet_address();
LOCK_LISTS;
outcome cromp_server::get_from_client(const octopus_request_id &id,
infoton * &data, int timeout)
{
-// FUNCDEF("get_from_client");
+ FUNCDEF("get_from_client");
if (!_enabled) return common::INCOMPLETE;
//hmmm: this implementation locks the lists; can't we get the client to do
// most of the work for this?