feisty meow concerns codebase  2.140
spocket.cpp File Reference
#include "internet_address.h"
#include "raw_socket.h"
#include "spocket.h"
#include "tcpip_stack.h"
#include <basis/byte_array.h>
#include <basis/functions.h>
#include <basis/astring.h>
#include <basis/mutex.h>
#include <loggers/critical_events.h>
#include <loggers/program_wide_logger.h>
#include <structures/static_memory_gremlin.h>
#include <timely/time_control.h>
#include <timely/time_stamp.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:

Go to the source code of this file.

Namespaces

 sockets
 Provides access to the operating system's socket methods.
 

Macros

#define LOG(to_print)   CLASS_EMERGENCY_LOG(program_wide_logger::get(), to_print)
 
#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 sockets::PENDING_CONNECTIONS_ALLOWED = 14
 
const int sockets::RESOLVE_INTERVAL = 300
 

Macro Definition Documentation

◆ CHECK_BOGUS

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

Definition at line 77 of file spocket.cpp.

◆ ENSURE_HEALTH

#define ENSURE_HEALTH (   retval)
Value:
if (!was_connected()) return retval; /* never has been. */ \
if (!_socket) { RECOGNIZE_DISCO; return retval; /* not set. */ }
#define RECOGNIZE_DISCO
Definition: spocket.cpp:68

Definition at line 73 of file spocket.cpp.

◆ GRAB_LOCK

#define GRAB_LOCK

Definition at line 92 of file spocket.cpp.

◆ LOG

#define LOG (   to_print)    CLASS_EMERGENCY_LOG(program_wide_logger::get(), to_print)

Definition at line 55 of file spocket.cpp.

◆ RECOGNIZE_DISCO

#define RECOGNIZE_DISCO
Value:
_client_bind = false; \
_was_connected = false

Definition at line 68 of file spocket.cpp.