address.cpp File Reference

#include "address.h"
#include "imp_sockets.h"
#include "machine_uid.h"
#include <basis/byte_array.h>
#include <basis/function.h>
#include <basis/istring.h>
#include <basis/mutex.h>
#include <data_struct/configurator.h>
#include <data_struct/static_memory_gremlin.h>
#include <data_struct/string_table.h>
#include <textual/parser_bits.h>
#include <textual/tokenizer.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for address.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(program_wide_logger(), to_print)
#define APPROX(t)   (t.lower()).substring(0, 2)
#define FILL(addr_type)
#define CAST_UP(type)

Functions

 SAFE_STATIC_CONST (byte_array, internet_address::localhost,(ADDRESS_SIZE, localhosts_bytes)) bool internet_address
 SAFE_STATIC_CONST (byte_array, internet_address::nil_address,(ADDRESS_SIZE, nil_address_bytes)) bool internet_address

Variables

const byte localhosts_bytes [] = { 127, 0, 0, 1 }
const byte nil_address_bytes [] = { 0, 0, 0, 0 }


Define Documentation

#define APPROX (  )     (t.lower()).substring(0, 2)

Definition at line 174 of file address.cpp.

Referenced by network_address::type_from_text().

#define CAST_UP ( type   ) 

Value:

const type *temp = dynamic_cast<const type *>(&compare_in); \
  if (!temp) return false;  /* shouldn't happen but it means bad things. */ \
  const type &to_compare = *temp;

Definition at line 363 of file address.cpp.

Referenced by internet_address::same_host(), ipc_address::same_port(), serial_port_address::same_port(), internet_address::same_port(), and serial_port_address::shareable().

#define FILL ( addr_type   ) 

Value:

{ \
  addr_type *low = new addr_type; \
  worked = low->detokenize(info); \
  if (worked) _addr = low; \
  else WHACK(low); \
  break; \
}

Definition at line 229 of file address.cpp.

Referenced by network_address::detokenize().

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

Definition at line 43 of file address.cpp.


Function Documentation

SAFE_STATIC_CONST ( byte_array  ,
internet_address::nil_address  ,
(ADDRESS_SIZE, nil_address_bytes  
)

Definition at line 556 of file address.cpp.

SAFE_STATIC_CONST ( byte_array  ,
internet_address::localhost  ,
(ADDRESS_SIZE, localhosts_bytes  
)

Definition at line 451 of file address.cpp.

References get, and istring::to_lower().


Variable Documentation

const byte localhosts_bytes[] = { 127, 0, 0, 1 }

Definition at line 450 of file address.cpp.

const byte nil_address_bytes[] = { 0, 0, 0, 0 }

Definition at line 555 of file address.cpp.


Generated on Fri Nov 28 04:29:45 2008 for HOOPLE Libraries by  doxygen 1.5.1