spocket.cpp File Reference

#include "address.h"
#include "imp_sockets.h"
#include "raw_socket.h"
#include "spocket.h"
#include "tcpip_definitions.h"
#include "tcpip_stack.h"
#include <basis/byte_array.h>
#include <basis/function.h>
#include <basis/istring.h>
#include <basis/mutex.h>
#include <basis/portable.h>
#include <data_struct/static_memory_gremlin.h>
#include <mechanisms/time_stamp.h>
#include <loggers/console_logger.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <signal.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <termios.h>
#include <unistd.h>

Include dependency graph for spocket.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG(to_print)   CLASS_EMERGENCY_LOG(console_logger(), to_print)
#define FILT_LOG(filter, to_print)   CLASS_FILTER_LOG(console_logger(), to_print, filter)
#define RECOGNIZE_DISCO
#define ENSURE_HEALTH(retval)
#define CHECK_BOGUS(retval)   if (is_bogus()) { return retval; /* this spocket is junk. */ }
#define GRAB_LOCK

Variables

const int PENDING_CONNECTIONS_ALLOWED = 14
const int RESOLVE_INTERVAL = 300


Define Documentation

#define CHECK_BOGUS ( retval   )     if (is_bogus()) { return retval; /* this spocket is junk. */ }

Definition at line 75 of file spocket.cpp.

Referenced by spocket::accept(), spocket::await_readable(), spocket::await_writable(), spocket::connect(), spocket::receive(), spocket::receive_from(), spocket::send(), and spocket::send_to().

#define ENSURE_HEALTH ( retval   ) 

Value:

if (!_was_connected) return retval;  /* never has been. */ \
  if (!_socket) { RECOGNIZE_DISCO; return retval; /* not set. */ }

Definition at line 71 of file spocket.cpp.

Referenced by spocket::await_readable(), spocket::await_writable(), spocket::connected(), spocket::receive(), spocket::receive_from(), and spocket::send().

#define FILT_LOG ( filter,
to_print   )     CLASS_FILTER_LOG(console_logger(), to_print, filter)

Definition at line 53 of file spocket.cpp.

#define GRAB_LOCK

Definition at line 86 of file spocket.cpp.

Referenced by entity_data_bin::acquire_for_any(), entity_data_bin::acquire_for_entity(), entity_data_bin::acquire_for_identifier(), simple_entity_registry::add_entity(), entity_data_bin::add_item(), octopus::add_tentacle(), simple_entity_registry::authorized(), spocket::await_readable(), spocket::await_writable(), list_manager::clean(), entity_data_bin::clean_out_deadwood(), list_manager::clone_object(), spocket::connect(), spocket::connected(), entity_data_bin::entities(), list_manager::entries(), octopus::evaluate(), octopus::expunge(), entity_data_bin::get_sizes(), list_manager::is_listed(), simple_entity_registry::locate_entity(), spocket::receive(), spocket::receive_from(), simple_entity_registry::refresh_entity(), list_manager::reset(), octopus::restore(), list_manager::retrieve(), spocket::send(), simple_entity_registry::text_form(), entity_data_bin::text_form(), list_manager::update(), list_manager::zap(), and simple_entity_registry::zap_entity().

#define LOG ( to_print   )     CLASS_EMERGENCY_LOG(console_logger(), to_print)

Definition at line 51 of file spocket.cpp.

#define RECOGNIZE_DISCO

Value:

_client_bind = false; \
  _was_connected = false

Definition at line 66 of file spocket.cpp.

Referenced by spocket::await_readable(), spocket::await_writable(), spocket::connected(), spocket::disconnect(), and spocket::receive().


Variable Documentation

const int PENDING_CONNECTIONS_ALLOWED = 14

Definition at line 55 of file spocket.cpp.

Referenced by spocket::accept().

const int RESOLVE_INTERVAL = 300

Definition at line 60 of file spocket.cpp.

Referenced by spocket::connect().


Generated on Sat Aug 30 04:32:20 2008 for HOOPLE Libraries by  doxygen 1.5.1