ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ucommon Namespace Reference

Namespaces

 Type
 

Classes

class  __context
 
class  __FINAL
 
class  __multicode
 
class  _input_double
 
class  _input_long
 
class  _stream_operators
 
class  array_pointer
 
class  array_reuse
 
class  ArrayRef
 
class  arrayref
 
class  ArrayReuse
 
class  Atomic
 
class  AutoClear
 
class  autoclear
 
class  autoclear< char * >
 
class  autoclear< uint8_t * >
 
class  autoexclusive
 
class  AutoObject
 
class  AutoProtect
 
class  autoprotect
 
class  autorelease
 
class  autoshared
 
class  Barrier
 
class  byteref
 
class  charbuf
 
class  cidr
 
class  Cipher
 
class  Conditional
 
class  ConditionalAccess
 
class  ConditionalLock
 
class  ConditionMutex
 
class  ConditionVar
 
class  CountedObject
 
class  counter
 
class  Date
 julian number based date class. More...
 
class  DateNumber
 a number that is also a date string. More...
 
class  DateTime
 Integer based time class. More...
 
class  DateTimeString
 a datetime class that returns strings. More...
 
class  DetachedThread
 
class  Digest
 
class  dir
 
class  DirPager
 
class  DLinkedObject
 
class  dso
 
class  ExclusiveProtocol
 
class  filestream
 
class  fsys
 
class  HMAC
 
class  imemstream
 
class  InputProtocol
 
class  isotime
 
class  JoinableThread
 
class  keydata
 
class  keyfile
 
class  KeyProtocol
 
class  linked_pointer
 
class  linked_pointer< sockaddr_struct >
 
class  linked_sockaddr_operations
 
class  linked_value
 
class  LinkedObject
 
class  ListenSocket
 
class  listref
 
class  LockingProtocol
 
class  mapped_array
 
class  mapped_pointer
 
class  mapped_reuse
 
class  mapped_view
 
class  MappedMemory
 
class  MappedPointer
 
class  MappedReuse
 
class  MapRef
 
class  mapref
 
class  memalloc
 
class  MemoryProtocol
 
class  MemoryRedirect
 
class  mempager
 
class  memstring
 
class  Mutex
 
struct  mutex_entry
 
class  mutex_index
 
class  NamedObject
 
class  NamedTree
 
class  NullBuffer
 
class  Number
 number manipulation. More...
 
class  object_pointer
 
class  ObjectPager
 
class  ObjectProtocol
 
class  omemstream
 
class  OrderedIndex
 
class  OrderedObject
 
class  paged_reuse
 
class  pager
 
class  PagerObject
 
class  PagerPool
 
class  PagerReuse
 
class  pipestream
 
class  pointer
 
class  PrintProtocol
 
class  queueref
 
class  Random
 
class  RecursiveMutex
 
class  ReusableAllocator
 
class  ReusableObject
 
class  RWLock
 
class  rwlock_entry
 
class  rwlock_index
 
class  sarray
 
class  save_restore
 
class  secure
 
class  Semaphore
 
class  SeqCounter
 
class  sequence
 
class  shared_access
 
class  SharedProtocol
 
class  SharedRef
 
class  sharedref
 
class  shell
 
class  Socket
 
class  SparseObjects
 
class  sstream
 
class  stackref
 
class  strdup_t
 
class  StreamBuffer
 
class  String
 
class  stringbuf
 
class  StringPager
 
class  stringref
 
class  TCPServer
 
class  tcpstream
 
class  temporary
 
class  temporary< char * >
 
class  temporary< uint8_t * >
 
class  Thread
 
class  Time
 Integer based time class. More...
 
class  TimedEvent
 
class  Timer
 
class  TimerQueue
 
class  toggle
 
class  treemap
 
class  typeref
 
class  TypeRef
 
class  typeref< const char * >
 
class  typeref< const uint8_t * >
 
class  typeref_guard
 
class  TypeRelease
 
class  UString
 
class  utf8
 
class  utf8_pointer
 
class  ZNumber
 zero filled number manipulation. More...
 

Typedefs

typedef uint8_t bit_t
 
typedef gnutls_session_t SSL
 
typedef gnutls_mac_algorithm_t HMAC_ID
 
typedef gnutls_hmac_hd_t HMAC_CTX
 
typedef gnutls_digest_algorithm_t MD_ID
 
typedef gnutls_hash_hd_t MD_CTX
 
typedef gnutls_cipher_hd_t CIPHER_CTX
 
typedef gnutls_cipher_algorithm_t CIPHER_ID
 
typedef gnutls_datum_t CIPHER_KEYDATA
 
typedef __contextSSL_CTX
 
typedef arrayref< Type::Bytesbytearray_t
 
typedef arrayref< Type::Charsstringarray_t
 
typedef ConditionalLock condlock_t
 
typedef ConditionalAccess accesslock_t
 
typedef Semaphore semaphore_t
 
typedef Barrier barrier_t
 
typedef counter counter_t
 
typedef toggle toggle_t
 
typedef DateTime datetime_t
 
typedef DateTimeString datetimestring_t
 
typedef Date date_t
 
typedef Time tod_t
 
typedef void * mem_t
 
typedef fsys fsys_t
 
typedef dir dir_t
 
typedef dso dso_t
 
typedef LinkedObjectLinkedIndex
 
typedef DLinkedObject LinkedList
 
typedef StringPager stringlist_t
 
typedef StringPager::member stringlistitem_t
 
typedef DirPager dirlist_t
 
typedef Number number_t
 
typedef ZNumber znumber_t
 
typedef unsigned short vectorsize_t
 
typedef Digest digest_t
 
typedef HMAC hmac_t
 
typedef Cipher cipher_t
 
typedef Cipher::Key skey_t
 
typedef secure::string keystring_t
 
typedef shell shell_t
 
typedef TCPServer tcpserv_t
 
typedef String string_t
 
typedef String::regex stringex_t
 
typedef TimedEvent timedevent_t
 
typedef Mutex mutex_t
 
typedef RWLock rwlock_t
 
typedef RecursiveMutex rexlock_t
 
typedef TimerQueue::event TQEvent
 
typedef Timer timer_t
 
typedef typeref< Type::Chars >::value * charvalues_t
 
typedef typeref< Type::Bytes >::value * bytevalues_t
 
typedef typeref< Type::Charsstringref_t
 
typedef typeref< Type::Bytesbyteref_t
 
typedef typeref< Type::Boolsboolref_t
 
typedef int32_t ucs4_t
 
typedef int16_t ucs2_t
 
typedef void * unicode_t
 
typedef UString ustring_t
 
typedef utf8_pointer utf8_t
 

Functions

static int ncompare (const void *o1, const void *o2)
 
static int ncompare (const void *o1, const void *o2)
 
static void noecho (int fd)
 
static void echo (int fd)
 
static void exit_handler (void)
 
static void abort_handler (int signo)
 
static void socket_mapping (int family, socket_t so)
 
static void freeaddrinfo (struct addrinfo *aip)
 
static int getnameinfo (const struct sockaddr *addr, socklen_t len, char *host, size_t hostlen, char *service, size_t servlen, int flags)
 
static int getaddrinfo (const char *hostname, const char *servname, const struct addrinfo *hintsp, struct addrinfo **res)
 
static int setfamily (int family, const char *host)
 
static void bitmask (bit_t *bits, bit_t *mask, unsigned len)
 
static void bitimask (bit_t *bits, bit_t *mask, unsigned len)
 
static void bitset (bit_t *bits, unsigned blen)
 
static unsigned bitcount (bit_t *bits, unsigned len)
 
String str (Socket &so, size_t size)
 
bool getline (std::istream &in, char *buffer, size_t size)
 
bool putline (std::ostream &out, char *buffer)
 
static int hexcode (char ch)
 
static unsigned hash_address (const void *ptr, unsigned indexing)
 
static void * exec_thread (void *obj)
 
static long _difftime (time_t ref)
 
static void adj (struct timeval *ts)
 
unicode_t unidup (const char *string)
 
bool is_exists (const char *path)
 
bool is_readable (const char *path)
 
bool is_writable (const char *path)
 
bool is_executable (const char *path)
 
bool is_file (const char *path)
 
bool is_dir (const char *path)
 
bool is_link (const char *path)
 
bool is_device (const char *path)
 
template<typename T >
bool is (T &object)
 
template<typename T >
bool isnull (T &object)
 
template<typename T >
bool isnullp (T *object)
 
template<typename T >
T * dup (const T &object)
 
template<typename T >
void dupfree (T object)
 
template<>
char * dup< char > (const char &object)
 
template<>
void dupfree< char * > (char *object)
 
template<typename T >
void reset_unsafe (T &object)
 
template<typename T >
void zero_unsafe (T &object)
 
template<typename T >
void copy_unsafe (T *target, const T *source)
 
template<typename T >
void store_unsafe (T &target, const T *source)
 
template<typename T >
void swap (T &o1, T &o2)
 
template<typename T >
copy (const T &src)
 
template<typename T >
T & copy (const T &src, T &to)
 
template<typename T >
T & move (T &src, T &to)
 
template<typename T >
T & clear (T &o)
 
template<typename T >
bool bound (const T *pointer, const T *base, size_t count)
 
template<typename T >
T &() max (T &o1, T &o2)
 
template<typename T >
T &() min (T &o1, T &o2)
 
template<typename T >
T &() limit (T &value, T &low, T &high)
 
template<typename T >
T & deref_pointer (T *pointer)
 
template<typename T >
size_t mapkeypath (typeref< T > &object)
 
template<>
size_t mapkeypath< const char * > (typeref< const char * > &object)
 
template<>
size_t mapkeypath< const uint8_t * > (typeref< const uint8_t * > &object)
 
String str (StringPager &list, const char *prefix=NULL, const char *middle=NULL, const char *suffix=NULL)
 
template<typename T >
const T abs (const T &value)
 
template<typename T >
const T() min (const T &v1, const T &v2)
 
template<typename T >
const T() max (const T &v1, const T &v2)
 
void zerofill (void *addr, size_t size)
 
template<typename T >
void clearmem (T &var)
 
template<typename T >
size_t mapped_keypath (const T *addr)
 
template<typename T >
bool mapped_keyequal (const T *key1, const T *key2)
 
template<>
size_t mapped_keypath< char > (const char *addr)
 
template<>
bool mapped_keyequal< char > (const char *k1, const char *k2)
 
template<>
size_t mapped_keypath< struct sockaddr > (const struct sockaddr *addr)
 
template<>
bool mapped_keyequal< struct sockaddr > (const struct sockaddr *s1, const struct sockaddr *s2)
 
const char * __TEXT (const char *s)
 
const char * _TEXT (const char *s)
 
struct addrinfoaddrinfo (Socket::address &address)
 
const struct sockaddr * addr (Socket::address &address)
 
bool eq (const struct sockaddr *s1, const struct sockaddr *s2)
 
bool eq (const struct sockaddr_storage *s1, const struct sockaddr_storage *s2)
 
bool eq_host (const struct sockaddr *s1, const struct sockaddr *s2)
 
bool eq_subnet (const struct sockaddr *s1, const struct sockaddr *s2)
 
bool __EXPORT putline (std::ostream &out, const char *buffer)
 
std::ostream & operator<< (std::ostream &out, const PrintProtocol &format)
 
std::istream & operator>> (std::istream &inp, InputProtocol &format)
 
std::ostream & operator<< (std::ostream &out, const string_t &str)
 
std::istream & operator>> (std::istream &inp, string_t &str)
 
std::ostream & operator<< (std::ostream &out, const stringlist_t &list)
 
std::istream & operator>> (std::istream &in, stringlist_t &list)
 
std::string & operator+ (std::string &target, String &source)
 
std::string & operator+= (std::string &target, String &source)
 
std::ostream & operator<< (std::ostream &os, Socket::address &addr)
 
bool eq (char const *s1, char const *s2)
 
bool ne (char const *s1, char const *s2)
 
bool eq (char const *s1, char const *s2, size_t size)
 
bool ne (char const *s1, char const *s2, size_t size)
 
bool eq (String &s1, const char *s2)
 
bool ne (String &s1, String &s2)
 
bool lt (String &s1, const char *s2)
 
bool gt (String &s1, const char *s2)
 
bool le (String &s1, const char *s2)
 
bool ge (String &s1, const char *s2)
 
bool eq_case (char const *s1, char const *s2)
 
bool ne_case (char const *s1, char const *s2)
 
bool eq_case (char const *s1, char const *s2, size_t size)
 
String str (const char *string)
 
String str (String &string)
 
String str (short value)
 
String str (unsigned short value)
 
String str (long value)
 
String str (unsigned long value)
 
String str (double value)
 
template<>
void swap< string_t > (string_t &s1, string_t &s2)
 
template<typename T >
typeref< T > typeref_cast (T x)
 
ucs4_tstrudup (const char *string)
 
ucs2_tstrwdup (const char *string)
 
template<>
void dupfree< ucs2_t * > (ucs2_t *string)
 
template<>
void dupfree< ucs4_t * > (ucs4_t *string)
 
template<>
void dupfree< unicode_t > (unicode_t string)
 
static void ssl_lock (int mode, int n, const char *file, int line)
 
static unsigned long ssl_self (void)
 

Variables

static mutex_t lockflag
 
static shell::loglevel_t errlevel = shell::WARN
 
static shell::logmode_t errmode = shell::NONE
 
static const char * errname = NULL
 
static shell::logproc_t errproc = (shell::logproc_t)NULL
 
static mutex_t symlock
 
static char ** _orig = NULL
 
static shell::Optionofirst = NULL
 
static shell::Optionolast = NULL
 
static const char * _domain = NULL
 
static shell::exitproc_t _exitproc = NULL
 
static shell::numeric_t numeric_mode = shell::NO_NUMERIC
 
static long numeric_value = 0l
 
static const char * msgs []
 
static const char * system_prefix = UCOMMON_PREFIX
 
static int query_family = 0
 
static int v6only = 0
 
static mutex servmutex
 
static mutex hostmutex
 
static const uint8_t alphabet [65]
 
static rwlock_index single_rwlock
 
static rwlock_indexrwlock_table = &single_rwlock
 
static mutex_index single_table
 
static mutex_indexmutex_table = &single_table
 
static unsigned mutex_indexing = 1
 
static unsigned rwlock_indexing = 1
 
static pthread_key_t threadmap
 
static TypeSecure _secure_release
 
static TypeReleaseLater _release_later
 
TypeRelease auto_release
 
__EXPORT TypeRelease secure_release
 
__EXPORT TypeRelease release_later
 
static mutex_tprivate_locks = NULL
 

Detailed Description

Common namespace for all ucommon objects. We are using a common namespace to easily separate ucommon from other libraries. This namespace usage is set to the package name and controlled by macros so future changes will be hidden from user applications so long as the namespace macros (UCOMMON_NAMESPACE, NAMESPACE_UCOMMON, END_NAMESPACE) are used in place of direct namespace declarations.

Typedef Documentation

◆ accesslock_t

Convenience type for scheduling access.

Definition at line 730 of file condition.h.

◆ barrier_t

Convenience type for using thread barriers.

Definition at line 740 of file condition.h.

◆ bit_t

typedef uint8_t ucommon::bit_t

Definition at line 109 of file socket.cpp.

◆ boolref_t

Definition at line 745 of file typeref.h.

◆ bytearray_t

Definition at line 332 of file arrayref.h.

◆ byteref_t

Definition at line 744 of file typeref.h.

◆ bytevalues_t

Definition at line 742 of file typeref.h.

◆ charvalues_t

Definition at line 741 of file typeref.h.

◆ CIPHER_CTX

typedef gnutls_cipher_hd_t ucommon::CIPHER_CTX

Definition at line 56 of file local.h.

◆ CIPHER_ID

typedef gnutls_cipher_algorithm_t ucommon::CIPHER_ID

Definition at line 57 of file local.h.

◆ CIPHER_KEYDATA

typedef gnutls_datum_t ucommon::CIPHER_KEYDATA

Definition at line 58 of file local.h.

◆ cipher_t

Convenience type for generic ciphers.

Definition at line 888 of file secure.h.

◆ condlock_t

Convenience type for using conditional locks.

Definition at line 725 of file condition.h.

◆ counter_t

A convenience typecast for integer counters.

Definition at line 216 of file counter.h.

◆ date_t

Convenience type for using Date object.

Definition at line 1031 of file datetime.h.

◆ datetime_t

Convenience type for using DateTime object.

Definition at line 1021 of file datetime.h.

◆ datetimestring_t

Convenience type for using DateTimeString object.

Definition at line 1026 of file datetime.h.

◆ digest_t

Convenience type for generic digests.

Definition at line 878 of file secure.h.

◆ dir_t

Definition at line 834 of file fsys.h.

◆ dirlist_t

A convenience type for using DirPager directly.

Definition at line 895 of file memory.h.

◆ dso_t

Definition at line 836 of file fsys.h.

◆ fsys_t

Convience type for fsys.

Definition at line 832 of file fsys.h.

◆ HMAC_CTX

typedef gnutls_hmac_hd_t ucommon::HMAC_CTX

Definition at line 53 of file local.h.

◆ HMAC_ID

typedef gnutls_mac_algorithm_t ucommon::HMAC_ID

Definition at line 52 of file local.h.

◆ hmac_t

Convenience type for generic digests.

Definition at line 883 of file secure.h.

◆ keystring_t

Definition at line 1022 of file secure.h.

◆ LinkedIndex

Convenience typedef for root pointers of single linked lists.

Definition at line 1406 of file linked.h.

◆ LinkedList

Definition at line 1408 of file linked.h.

◆ MD_CTX

typedef gnutls_hash_hd_t ucommon::MD_CTX

Definition at line 55 of file local.h.

◆ MD_ID

typedef gnutls_digest_algorithm_t ucommon::MD_ID

Definition at line 54 of file local.h.

◆ mem_t

typedef void* ucommon::mem_t

Convenience type for loader operations.

Definition at line 115 of file fsys.h.

◆ mutex_t

Convenience type for using exclusive mutex locks.

Definition at line 940 of file thread.h.

◆ number_t

A convenience type for number.

Definition at line 204 of file numbers.h.

◆ rexlock_t

Convenience type for using recursive exclusive locks.

Definition at line 950 of file thread.h.

◆ rwlock_t

Convenience type for using read/write locks.

Definition at line 945 of file thread.h.

◆ semaphore_t

Convenience type for using counting semaphores.

Definition at line 735 of file condition.h.

◆ shell_t

Convenience type to manage and pass shell objects.

Definition at line 889 of file shell.h.

◆ skey_t

Convenience type for generic cipher key.

Definition at line 893 of file secure.h.

◆ SSL

typedef gnutls_session_t ucommon::SSL

Definition at line 51 of file local.h.

◆ SSL_CTX

Definition at line 59 of file local.h.

◆ string_t

A convenience type for string.

Definition at line 1579 of file string.h.

◆ stringarray_t

Definition at line 333 of file arrayref.h.

◆ stringex_t

Definition at line 1581 of file string.h.

◆ stringlist_t

A convenience type for paged string lists.

Definition at line 885 of file memory.h.

◆ stringlistitem_t

A convenience type for paged string list items.

Definition at line 890 of file memory.h.

◆ stringref_t

Definition at line 743 of file typeref.h.

◆ tcpserv_t

Definition at line 2326 of file socket.h.

◆ timedevent_t

Convenience type for using timed events.

Definition at line 935 of file thread.h.

◆ timer_t

A convenience type for timers.

Definition at line 427 of file timers.h.

◆ tod_t

Convenience type for using Time object.

Definition at line 1036 of file datetime.h.

◆ toggle_t

A convenience typecast for auto-toggled bools.

Definition at line 221 of file counter.h.

◆ TQEvent

A convenience type for timer queue timer events.

Definition at line 422 of file timers.h.

◆ ucs2_t

typedef int16_t ucommon::ucs2_t

16 bit unicode character code. Java and some api's like these.

Definition at line 55 of file unicode.h.

◆ ucs4_t

typedef int32_t ucommon::ucs4_t

32 bit unicode character code. We may extract this from a ucs2 or utf8 string.

Definition at line 50 of file unicode.h.

◆ unicode_t

typedef void* ucommon::unicode_t

Resolves issues where wchar_t is not defined.

Definition at line 60 of file unicode.h.

◆ ustring_t

Convenience type for utf8 encoded strings.

Definition at line 585 of file unicode.h.

◆ utf8_t

Convenience type for utf8_pointer strings.

Definition at line 590 of file unicode.h.

◆ vectorsize_t

typedef unsigned short ucommon::vectorsize_t

Definition at line 36 of file reuse.h.

◆ znumber_t

A convenience type for znumber.

Definition at line 209 of file numbers.h.

Function Documentation

◆ __TEXT()

const char* ucommon::__TEXT ( const char *  s)
inline

Invoke translation lookup if available. This can also be used to mark text constants that need to be translated. It should not be used with pointer variables, which should instead call shell::text directly. The primary purpose is to allow extraction of text to be internationalized with xgettext "--keyword=_TEXT:1".

Definition at line 908 of file shell.h.

References ucommon::shell::text().

◆ _difftime()

static long ucommon::_difftime ( time_t  ref)
static

◆ _TEXT()

const char* ucommon::_TEXT ( const char *  s)
inline

Definition at line 911 of file shell.h.

References ucommon::shell::text().

Referenced by binarydecode(), main(), process(), report(), result(), streamdecode(), and zerofill().

◆ abort_handler()

static void ucommon::abort_handler ( int  signo)
static

Definition at line 1765 of file shell.cpp.

References exit_handler().

Referenced by ucommon::shell::exiting().

◆ abs()

template<typename T >
const T ucommon::abs ( const T &  value)
inline

Template for absolute value of a type.

Parameters
valueto check
Returns
absolute value

Definition at line 217 of file numbers.h.

Referenced by ucommon::Timer::operator+=(), ucommon::Timer::operator-=(), ucommon::Timer::operator=(), and ucommon::Time::update().

◆ addr()

const struct sockaddr* ucommon::addr ( Socket::address address)
inline

A convenience function to convert a socket address list into a socket address.

Parameters
addresslist object.
Returns
first socket address in list or NULL if empty.

Definition at line 2089 of file socket.h.

References ucommon::Socket::address::get().

Referenced by ucommon::ListenSocket::accept(), ucommon::Socket::acceptfrom(), ucommon::Socket::address::add(), ucommon::Socket::address::address(), ost::DCCPSocket::connect(), ost::TCPStream::connect(), ucommon::Socket::address::copy(), ucommon::TypeRef::Counted::Counted(), cpr_memassign(), ost::DCCPSocket::DCCPSocket(), ucommon::Socket::disconnect(), ucommon::Socket::drop(), ucommon::Socket::address::dup(), ucommon::Socket::family(), ucommon::Socket::address::find(), ost::UDPSocket::getIPV4Peer(), ost::Socket::getIPV4Sender(), ost::Socket::getLocal(), getnameinfo(), ost::UDPSocket::getPeer(), ost::Socket::getPeer(), ost::Socket::getSender(), hash_address(), ucommon::Type::HostAddress::HostAddress(), ucommon::MapRef::index(), ucommon::Type::InetAddress::InetAddress(), ucommon::Socket::address::insert(), ucommon::Socket::address::ipv4(), ost::IPV4Address::IPV4Address(), ucommon::cidr::is_member(), ost::IPV4Address::isInetAddress(), ost::IPV4Cidr::isMember(), ucommon::Socket::join(), ucommon::Socket::keyhost(), ucommon::Socket::keyindex(), ucommon::MappedPointer::keypath(), ucommon::Socket::local(), ucommon::Socket::loopback(), main(), mapped_keypath(), mapped_keypath< char >(), mapped_keypath< struct sockaddr >(), ucommon::TypeRef::mem(), ucommon::Socket::multicast(), ost::operator&(), operator<<(), ost::IPV4Address::operator=(), ost::IPV4Mask::operator=(), ost::IPV4Host::operator=(), ucommon::Type::SockAddress::operator=(), ucommon::Type::InetAddress::operator=(), ost::DSO::operator[](), ucommon::memalloc::pager(), ucommon::Socket::port(), ucommon::Socket::query(), ost::UDPSocket::receive(), ucommon::Socket::recvfrom(), ucommon::Socket::remote(), ucommon::Socket::address::remove(), ost::UDPSocket::send(), ost::IPV4Cidr::set(), ucommon::Socket::address::set(), ost::IPV4Address::setIPAddress(), ost::Socket::setMulticastByFamily(), ucommon::Type::SockAddress::SockAddress(), ucommon::Socket::Socket(), ost::TCPSession::TCPSession(), ost::TCPSocket::TCPSocket(), ucommon::Socket::ttl(), ost::UDPSocket::UDPSocket(), and zerofill().

◆ addrinfo()

struct addrinfo* ucommon::addrinfo ( Socket::address address)
inline

A convenience function to convert a socket address list into an addrinfo.

Parameters
addresslist object.
Returns
addrinfo list or NULL if empty.

Definition at line 2079 of file socket.h.

References ucommon::Socket::address::getList().

◆ adj()

static void ucommon::adj ( struct timeval *  ts)
static

◆ bitcount()

static unsigned ucommon::bitcount ( bit_t bits,
unsigned  len 
)
static

Definition at line 483 of file socket.cpp.

Referenced by ucommon::cidr::mask().

◆ bitimask()

static void ucommon::bitimask ( bit_t bits,
bit_t mask,
unsigned  len 
)
static

Definition at line 457 of file socket.cpp.

Referenced by ucommon::cidr::broadcast().

◆ bitmask()

static void ucommon::bitmask ( bit_t bits,
bit_t mask,
unsigned  len 
)
static

◆ bitset()

static void ucommon::bitset ( bit_t bits,
unsigned  blen 
)
static

Definition at line 466 of file socket.cpp.

Referenced by ucommon::cidr::set().

◆ bound()

template<typename T >
bool ucommon::bound ( const T *  pointer,
const T *  base,
size_t  count 
)
inline

Convenience function to check memory arrays.

Parameters
pointerto validate.
baseaddress of array.
countof objects.
Returns
true if in boundry.

Definition at line 430 of file generics.h.

◆ clear()

◆ clearmem()

template<typename T >
void ucommon::clearmem ( T &  var)

Definition at line 1017 of file secure.h.

◆ copy() [1/2]

◆ copy() [2/2]

template<typename T >
T& ucommon::copy ( const T &  src,
T &  to 
)
inline

Definition at line 400 of file generics.h.

References caddr_t.

◆ copy_unsafe()

template<typename T >
void ucommon::copy_unsafe ( T *  target,
const T *  source 
)
inline

Convenience function to copy class.

Parameters
targetto copy into.
sourceto copy from.

Definition at line 367 of file generics.h.

◆ deref_pointer()

template<typename T >
T& ucommon::deref_pointer ( T *  pointer)
inline

Convert a pointer to a reference with type checking. This is mostly convenience for documenting behavior.

Parameters
pointerto convert.
Returns
object reference.

Definition at line 479 of file generics.h.

References __THROW_DEREF.

◆ dup()

template<typename T >
T* ucommon::dup ( const T &  object)
inline

◆ dup< char >()

template<>
char* ucommon::dup< char > ( const char &  object)
inline

Definition at line 334 of file generics.h.

◆ dupfree()

template<typename T >
void ucommon::dupfree ( object)
inline

Definition at line 329 of file generics.h.

◆ dupfree< char * >()

template<>
void ucommon::dupfree< char * > ( char *  object)
inline

Definition at line 339 of file generics.h.

◆ dupfree< ucs2_t * >()

template<>
void ucommon::dupfree< ucs2_t * > ( ucs2_t string)
inline

Definition at line 568 of file unicode.h.

◆ dupfree< ucs4_t * >()

template<>
void ucommon::dupfree< ucs4_t * > ( ucs4_t string)
inline

Definition at line 573 of file unicode.h.

◆ dupfree< unicode_t >()

template<>
void ucommon::dupfree< unicode_t > ( unicode_t  string)
inline

Definition at line 578 of file unicode.h.

◆ echo()

static void ucommon::echo ( int  fd)
static

◆ eq() [1/5]

bool ucommon::eq ( char const *  s1,
char const *  s2 
)
inline

Compare two null terminated strings if equal.

Parameters
s1string to compare.
s2string to compare.
Returns
true if equal.

Definition at line 1636 of file string.h.

References ucommon::String::equal().

◆ eq() [2/5]

bool ucommon::eq ( char const *  s1,
char const *  s2,
size_t  size 
)
inline

Compare two null terminated strings if equal up to specified size.

Parameters
s1string to compare.
s2string to compare.
sizeof string to compare.
Returns
true if equal.

Definition at line 1651 of file string.h.

References ucommon::String::equal().

◆ eq() [3/5]

bool ucommon::eq ( const struct sockaddr *  s1,
const struct sockaddr *  s2 
)
inline

◆ eq() [4/5]

bool ucommon::eq ( const struct sockaddr_storage s1,
const struct sockaddr_storage s2 
)
inline

Compare two stored socket addresses to see if equal. If the port is zero then this is the same as comparing host address alone.

Parameters
s1stored socket address to compare.
s2stored socket address to compare.
Returns
true if addresses same.

Definition at line 2111 of file socket.h.

References ucommon::Socket::equal().

◆ eq() [5/5]

bool ucommon::eq ( String s1,
const char *  s2 
)
inline

Compare two string objects if equal. The left string is an object, the right may be an object or converted to a const string. The compare virtual method of the left object is used, so we can do things like collation order or derived class specific sorting.

Parameters
s1string to compare.
s2string to compare.
Returns
true if equal.

Definition at line 1668 of file string.h.

References ucommon::String::compare().

◆ eq_case() [1/2]

bool ucommon::eq_case ( char const *  s1,
char const *  s2 
)
inline

Compare two null terminated strings if equal ignoring case. This is related to stricmp or gcc strcasecmp.

Parameters
s1string to compare.
s2string to compare.
Returns
true if equal.

Definition at line 1699 of file string.h.

References ucommon::String::eq_case().

Referenced by ucommon::keydata::clear(), ucommon::keydata::get(), ucommon::keyfile::get(), main(), ucommon::__context::map_cipher(), ucommon::__context::map_digest(), ucommon::__context::map_hmac(), ucommon::keydata::set(), ucommon::shell::set0(), and ost::Process::setScheduler().

◆ eq_case() [2/2]

bool ucommon::eq_case ( char const *  s1,
char const *  s2,
size_t  size 
)
inline

Compare two null terminated strings if equal for a specified size ignoring case. This is related to stricmp or gcc strcasecmp.

Parameters
s1string to compare.
s2string to compare.
sizeof string to compare.
Returns
true if equal.

Definition at line 1713 of file string.h.

References ucommon::String::eq_case().

◆ eq_host()

bool ucommon::eq_host ( const struct sockaddr *  s1,
const struct sockaddr *  s2 
)
inline

Compare two host addresses to see if equal. The port numbers are ignored.

Parameters
s1socket address to compare.
s2socket address to compare.
Returns
true if addresses same.

Definition at line 2122 of file socket.h.

References ucommon::Socket::eq_host().

◆ eq_subnet()

bool ucommon::eq_subnet ( const struct sockaddr *  s1,
const struct sockaddr *  s2 
)
inline

Definition at line 2126 of file socket.h.

References ucommon::Socket::eq_subnet().

◆ exec_thread()

static void* ucommon::exec_thread ( void *  obj)
static

◆ exit_handler()

static void ucommon::exit_handler ( void  )
static

Definition at line 1756 of file shell.cpp.

References _exitproc.

Referenced by abort_handler(), and ucommon::shell::exiting().

◆ freeaddrinfo()

◆ ge()

bool ucommon::ge ( String s1,
const char *  s2 
)
inline

Definition at line 1688 of file string.h.

References ucommon::String::compare().

◆ getaddrinfo()

◆ getline()

bool __EXPORT ucommon::getline ( std::istream &  in,
char *  buffer,
size_t  size 
)

Definition at line 882 of file stream.cpp.

References buffer.

◆ getnameinfo()

static int ucommon::getnameinfo ( const struct sockaddr *  addr,
socklen_t  len,
char *  host,
size_t  hostlen,
char *  service,
size_t  servlen,
int  flags 
)
static

◆ gt()

bool ucommon::gt ( String s1,
const char *  s2 
)
inline

Definition at line 1680 of file string.h.

References ucommon::String::compare().

◆ hash_address()

static unsigned ucommon::hash_address ( const void *  ptr,
unsigned  indexing 
)
static

◆ hexcode()

static int ucommon::hexcode ( char  ch)
static

Definition at line 1865 of file string.cpp.

References ch.

Referenced by ucommon::String::hex2bin(), ucommon::String::hexcount(), and ucommon::String::hexpack().

◆ is()

◆ is_device()

bool ucommon::is_device ( const char *  path)
inline

Definition at line 873 of file fsys.h.

References ucommon::fsys::is_device().

◆ is_dir()

bool ucommon::is_dir ( const char *  path)
inline

Definition at line 863 of file fsys.h.

References ucommon::fsys::is_dir().

Referenced by ucommon::fsys::is_device().

◆ is_executable()

bool ucommon::is_executable ( const char *  path)
inline

Definition at line 853 of file fsys.h.

References ucommon::fsys::is_executable().

◆ is_exists()

bool ucommon::is_exists ( const char *  path)
inline

Definition at line 838 of file fsys.h.

References ucommon::fsys::is_exists().

◆ is_file()

bool ucommon::is_file ( const char *  path)
inline

Definition at line 858 of file fsys.h.

References ucommon::fsys::is_file().

Referenced by ucommon::secure::oscerts().

◆ is_link()

bool ucommon::is_link ( const char *  path)
inline

Definition at line 868 of file fsys.h.

References ucommon::fsys::is_link().

◆ is_readable()

bool ucommon::is_readable ( const char *  path)
inline

Definition at line 843 of file fsys.h.

References ucommon::fsys::is_readable().

◆ is_writable()

bool ucommon::is_writable ( const char *  path)
inline

Definition at line 848 of file fsys.h.

References ucommon::fsys::is_writable().

◆ isnull()

template<typename T >
bool ucommon::isnull ( T &  object)
inline

Convenience function to test pointer object. This solves issues where some compilers get confused between bool and pointer operators.

Parameters
objectwe are testing.
Returns
true if object points to NULL.

Definition at line 303 of file generics.h.

◆ isnullp()

template<typename T >
bool ucommon::isnullp ( T *  object)
inline

Convenience function to test pointer-pointer object. This solves issues where some compilers get confused between bool and pointer operators.

Parameters
objectwe are testing.
Returns
true if object points to NULL.

Definition at line 314 of file generics.h.

◆ le()

bool ucommon::le ( String s1,
const char *  s2 
)
inline

Definition at line 1684 of file string.h.

References ucommon::String::compare().

◆ limit()

template<typename T >
T&() ucommon::limit ( T &  value,
T &  low,
T &  high 
)
inline

Convenience macro to range restrict values.

Parameters
valueto check.
lowvalue.
highvalue.
Returns
adjusted value.

Definition at line 468 of file generics.h.

Referenced by ucommon::Barrier::Barrier(), ucommon::memalloc::max(), ost::Socket::receiveLimit(), ucommon::Semaphore::Semaphore(), ost::Socket::sendLimit(), ucommon::SeqCounter::SeqCounter(), and ucommon::Barrier::set().

◆ lt()

bool ucommon::lt ( String s1,
const char *  s2 
)
inline

Definition at line 1676 of file string.h.

References ucommon::String::compare().

◆ mapkeypath()

template<typename T >
size_t ucommon::mapkeypath ( typeref< T > &  object)
inline

Definition at line 194 of file mapref.h.

References ucommon::MapRef::index().

◆ mapkeypath< const char * >()

template<>
size_t ucommon::mapkeypath< const char * > ( typeref< const char * > &  object)
inline

Definition at line 201 of file mapref.h.

References ucommon::MapRef::index().

◆ mapkeypath< const uint8_t * >()

template<>
size_t ucommon::mapkeypath< const uint8_t * > ( typeref< const uint8_t * > &  object)
inline

Definition at line 208 of file mapref.h.

References ucommon::MapRef::index().

◆ mapped_keyequal()

template<typename T >
bool ucommon::mapped_keyequal ( const T *  key1,
const T *  key2 
)
inline

Definition at line 165 of file shared.h.

◆ mapped_keyequal< char >()

template<>
bool ucommon::mapped_keyequal< char > ( const char *  k1,
const char *  k2 
)
inline

Definition at line 182 of file shared.h.

References eq().

◆ mapped_keyequal< struct sockaddr >()

template<>
bool ucommon::mapped_keyequal< struct sockaddr > ( const struct sockaddr *  s1,
const struct sockaddr *  s2 
)
inline

Definition at line 200 of file shared.h.

References ucommon::Socket::equal().

◆ mapped_keypath()

template<typename T >
size_t ucommon::mapped_keypath ( const T *  addr)
inline

Definition at line 156 of file shared.h.

References addr(), and ucommon::MappedPointer::keypath().

◆ mapped_keypath< char >()

template<>
size_t ucommon::mapped_keypath< char > ( const char *  addr)
inline

Definition at line 173 of file shared.h.

References addr(), and ucommon::MappedPointer::keypath().

◆ mapped_keypath< struct sockaddr >()

template<>
size_t ucommon::mapped_keypath< struct sockaddr > ( const struct sockaddr *  addr)
inline

Definition at line 191 of file shared.h.

References addr(), ucommon::MappedPointer::keypath(), and ucommon::Socket::len().

◆ max() [1/2]

template<typename T >
const T() ucommon::max ( const T &  v1,
const T &  v2 
)
inline

Template for max value of a type.

Parameters
v1value to check
v2value to check
Returns
v1 if > v2, else v2

Definition at line 244 of file numbers.h.

◆ max() [2/2]

◆ min() [1/2]

template<typename T >
const T() ucommon::min ( const T &  v1,
const T &  v2 
)
inline

Template for min value of a type.

Parameters
v1value to check
v2value to check
Returns
v1 if < v2, else v2

Definition at line 232 of file numbers.h.

◆ min() [2/2]

template<typename T >
T&() ucommon::min ( T &  o1,
T &  o2 
)
inline

Convenience function to return min of two objects.

Parameters
o1to check.
o2to check.
Returns
min object.

Definition at line 456 of file generics.h.

Referenced by ucommon::String::check(), ucommon::Random::get(), ucommon::shell::priority(), ucommon::Random::real(), ost::Process::setPriority(), ost::Process::setScheduler(), and ucommon::Random::value().

◆ move()

template<typename T >
T& ucommon::move ( T &  src,
T &  to 
)
inline

Convenience function to move objects.

Definition at line 409 of file generics.h.

References caddr_t.

◆ ncompare() [1/2]

static int ucommon::ncompare ( const void *  o1,
const void *  o2 
)
static

Definition at line 49 of file memory.cpp.

References ucommon::String::collate().

◆ ncompare() [2/2]

static int ucommon::ncompare ( const void *  o1,
const void *  o2 
)
static

Definition at line 264 of file linked.cpp.

Referenced by ucommon::NamedObject::sort(), and ucommon::StringPager::sort().

◆ ne() [1/3]

bool ucommon::ne ( char const *  s1,
char const *  s2 
)
inline

Definition at line 1640 of file string.h.

References ucommon::String::equal().

◆ ne() [2/3]

bool ucommon::ne ( char const *  s1,
char const *  s2,
size_t  size 
)
inline

Definition at line 1655 of file string.h.

References ucommon::String::equal().

◆ ne() [3/3]

bool ucommon::ne ( String s1,
String s2 
)
inline

Definition at line 1672 of file string.h.

References ucommon::String::compare().

◆ ne_case()

bool ucommon::ne_case ( char const *  s1,
char const *  s2 
)
inline

Definition at line 1702 of file string.h.

References ucommon::String::eq_case().

◆ noecho()

static void ucommon::noecho ( int  fd)
static

◆ operator+()

std::string& ucommon::operator+ ( std::string &  target,
String source 
)
inline

Definition at line 577 of file stream.h.

References ucommon::_stream_operators::append().

◆ operator+=()

std::string& ucommon::operator+= ( std::string &  target,
String source 
)
inline

Definition at line 581 of file stream.h.

References ucommon::_stream_operators::append().

Referenced by ucommon::String::trim().

◆ operator<<() [1/4]

std::ostream& ucommon::operator<< ( std::ostream &  os,
Socket::address addr 
)
inline

Definition at line 585 of file stream.h.

References addr().

◆ operator<<() [2/4]

std::ostream& ucommon::operator<< ( std::ostream &  out,
const PrintProtocol format 
)
inline

Definition at line 553 of file stream.h.

References out, and ucommon::_stream_operators::print().

◆ operator<<() [3/4]

std::ostream& ucommon::operator<< ( std::ostream &  out,
const string_t str 
)
inline

Definition at line 561 of file stream.h.

References out, ucommon::_stream_operators::print(), and str().

◆ operator<<() [4/4]

std::ostream& ucommon::operator<< ( std::ostream &  out,
const stringlist_t list 
)
inline

Definition at line 569 of file stream.h.

References out, and ucommon::_stream_operators::print().

◆ operator>>() [1/3]

std::istream& ucommon::operator>> ( std::istream &  in,
stringlist_t list 
)
inline

Definition at line 573 of file stream.h.

References ucommon::_stream_operators::input().

◆ operator>>() [2/3]

std::istream& ucommon::operator>> ( std::istream &  inp,
InputProtocol format 
)
inline

Definition at line 557 of file stream.h.

References ucommon::_stream_operators::input().

◆ operator>>() [3/3]

std::istream& ucommon::operator>> ( std::istream &  inp,
string_t str 
)
inline

Definition at line 565 of file stream.h.

References ucommon::_stream_operators::input(), and str().

◆ putline() [1/2]

bool ucommon::putline ( std::ostream &  out,
char *  buffer 
)

Definition at line 895 of file stream.cpp.

References buffer, and out.

◆ putline() [2/2]

bool __EXPORT ucommon::putline ( std::ostream &  out,
const char *  buffer 
)

◆ reset_unsafe()

template<typename T >
void ucommon::reset_unsafe ( T &  object)
inline

Convenience function to reset an existing object.

Parameters
objecttype to reset.

Definition at line 348 of file generics.h.

References caddr_t.

◆ setfamily()

static int ucommon::setfamily ( int  family,
const char *  host 
)
static

Definition at line 421 of file socket.cpp.

References AF_UNSPEC, and query_family.

Referenced by ucommon::Socket::create(), and ucommon::Socket::Socket().

◆ socket_mapping()

static void ucommon::socket_mapping ( int  family,
socket_t  so 
)
static

Definition at line 114 of file socket.cpp.

References INVALID_SOCKET, and v6only.

Referenced by ucommon::Socket::create(), ucommon::Socket::Socket(), and ucommon::Socket::via().

◆ ssl_lock()

static void ucommon::ssl_lock ( int  mode,
int  n,
const char *  file,
int  line 
)
static

Definition at line 30 of file secure.cpp.

References ucommon::Mutex::acquire(), private_locks, and ucommon::Mutex::release().

◆ ssl_self()

static unsigned long ucommon::ssl_self ( void  )
static

Definition at line 38 of file secure.cpp.

References ucommon::Thread::self().

◆ store_unsafe()

template<typename T >
void ucommon::store_unsafe ( T &  target,
const T *  source 
)
inline

Convenience function to store object pointer into object.

Parameters
targetto copy into.
sourceto copy from.

Definition at line 377 of file generics.h.

◆ str() [1/9]

String ucommon::str ( const char *  string)
inline

Definition at line 1717 of file string.h.

◆ str() [2/9]

String ucommon::str ( double  value)
inline

Definition at line 1741 of file string.h.

References temp.

Referenced by ost::addString(), and ost::setString().

◆ str() [3/9]

String ucommon::str ( long  value)
inline

Definition at line 1733 of file string.h.

References temp.

◆ str() [4/9]

String ucommon::str ( short  value)
inline

Definition at line 1725 of file string.h.

References temp.

◆ str() [5/9]

String ucommon::str ( Socket so,
size_t  size 
)

Definition at line 3507 of file socket.cpp.

References ucommon::String::data(), ucommon::String::fix(), ucommon::Socket::readline(), and ucommon::String::size().

Referenced by ucommon::StringPager::add(), ost::MemPager::alloc(), ucommon::typeref< const uint8_t * >::b64(), ucommon::byteref< R >::b64(), ucommon::utf8::chars(), ost::Socket::connectError(), ucommon::UString::count(), cpr_runtime_error(), ucommon::Date::Date(), ucommon::DateTime::DateTime(), ost::delString(), ucommon::MemoryProtocol::dup(), ost::RandomFile::error(), ost::MemPager::first(), ucommon::typeref< const uint8_t * >::hex(), ucommon::byteref< R >::hex(), ucommon::imemstream::imemstream(), ucommon::_stream_operators::input(), ucommon::Socket::is_null(), ucommon::Socket::is_numeric(), main(), ucommon::Digest::operator secure::string(), ucommon::HMAC::operator secure::string(), ucommon::Digest::operator*(), ucommon::HMAC::operator*(), ucommon::Digest::operator<<(), operator<<(), ucommon::HMAC::operator<<(), ost::AppLog::Ident::operator=(), ost::IPV4Address::operator=(), ucommon::utf8_pointer::operator=(), ucommon::typeref< const char * >::operator=(), ucommon::strdup_t::operator=(), operator>>(), ucommon::utf8::pack(), ucommon::shell::path(), ucommon::_stream_operators::print(), process(), ucommon::stringref< R >::promote(), ucommon::byteref< R >::promote(), ucommon::StringPager::push(), ucommon::Digest::puts(), ucommon::HMAC::puts(), ost::PersistEngine::read(), ost::Socket::readData(), ost::Socket::readLine(), ost::logger::runQueue(), scan(), ucommon::Date::set(), ucommon::Time::set(), ucommon::StringPager::set(), ucommon::typeref< const char * >::set(), ucommon::typeref< const uint8_t * >::set(), ucommon::stringref< R >::set(), ucommon::byteref< R >::set(), ucommon::strdup_t::strdup_t(), strfree(), ucommon::Time::Time(), ucommon::typeref< const char * >::typeref(), ucommon::typeref< const uint8_t * >::typeref(), ucommon::utf8::unpack(), ucommon::shell::userid(), ucommon::utf8_pointer::utf8_pointer(), ucommon::secure::uuid(), ucommon::Random::uuid(), ucommon::typeref< const char * >::value::value(), ucommon::typeref< const uint8_t * >::value::value(), ost::PersistEngine::write(), and ucommon::Socket::writes().

◆ str() [6/9]

String ucommon::str ( String string)
inline

Definition at line 1721 of file string.h.

◆ str() [7/9]

String ucommon::str ( StringPager list,
const char *  prefix = NULL,
const char *  middle = NULL,
const char *  suffix = NULL 
)
inline

Definition at line 897 of file memory.h.

References ucommon::StringPager::join(), prefix, and suffix.

◆ str() [8/9]

String ucommon::str ( unsigned long  value)
inline

Definition at line 1737 of file string.h.

References temp.

◆ str() [9/9]

String ucommon::str ( unsigned short  value)
inline

Definition at line 1729 of file string.h.

References temp.

◆ strudup()

ucs4_t* ucommon::strudup ( const char *  string)
inline

Definition at line 557 of file unicode.h.

References ucommon::utf8::udup().

◆ strwdup()

ucs2_t* ucommon::strwdup ( const char *  string)
inline

Definition at line 561 of file unicode.h.

References ucommon::utf8::wdup().

◆ swap()

template<typename T >
void ucommon::swap ( T &  o1,
T &  o2 
)
inline

Convenience function to swap objects. Can be specialized.

Parameters
o1to swap.
o2to swap.

Definition at line 387 of file generics.h.

References cpr_memswap().

◆ swap< string_t >()

template<>
void ucommon::swap< string_t > ( string_t s1,
string_t s2 
)
inline

Definition at line 1746 of file string.h.

References ucommon::String::swap().

◆ typeref_cast()

template<typename T >
typeref<T> ucommon::typeref_cast ( x)
inline

Definition at line 748 of file typeref.h.

◆ unidup()

__EXPORT unicode_t ucommon::unidup ( const char *  string)

Definition at line 235 of file unicode.cpp.

References ucommon::utf8::udup(), and ucommon::utf8::wdup().

◆ zero_unsafe()

template<typename T >
void ucommon::zero_unsafe ( T &  object)
inline

Convenience function to zero an object and restore type info.

Parameters
objectto zero in memory.

Definition at line 357 of file generics.h.

References caddr_t.

◆ zerofill()

void ucommon::zerofill ( void *  addr,
size_t  size 
)
inline

Definition at line 895 of file secure.h.

References addr().

Referenced by ucommon::Cipher::Key::clear(), main(), ucommon::Cipher::pad(), and ucommon::Cipher::puts().

Variable Documentation

◆ _domain

const char* ucommon::_domain = NULL
static

◆ _exitproc

shell::exitproc_t ucommon::_exitproc = NULL
static

Definition at line 107 of file shell.cpp.

Referenced by exit_handler(), and ucommon::shell::exiting().

◆ _orig

char** ucommon::_orig = NULL
static

Definition at line 104 of file shell.cpp.

Referenced by ucommon::shell::parse().

◆ _release_later

TypeRelease release_later & ucommon::_release_later
static

Definition at line 756 of file typeref.cpp.

◆ _secure_release

TypeRelease secure_release & ucommon::_secure_release
static

Definition at line 755 of file typeref.cpp.

◆ alphabet

const uint8_t ucommon::alphabet[65]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 2114 of file string.cpp.

Referenced by ucommon::String::b64count(), ucommon::String::b64decode(), and ucommon::String::b64encode().

◆ auto_release

__EXPORT TypeRelease ucommon::auto_release

Definition at line 758 of file typeref.cpp.

Referenced by ucommon::ArrayRef::create(), and ucommon::MapRef::create().

◆ errlevel

◆ errmode

◆ errname

const char* ucommon::errname = NULL
static

◆ errproc

shell::logproc_t ucommon::errproc = (shell::logproc_t)NULL
static

Definition at line 102 of file shell.cpp.

Referenced by ucommon::shell::log().

◆ hostmutex

mutex ucommon::hostmutex
static

Definition at line 127 of file socket.cpp.

Referenced by getaddrinfo(), and getnameinfo().

◆ lockflag

mutex_t ucommon::lockflag
static

◆ msgs

const char* ucommon::msgs[]
static
Initial value:
= {
_TEXT("missing command line arguments"),
_TEXT("missing argument for option"),
_TEXT("option does not have argument"),
_TEXT("unknown command option"),
_TEXT("option already used"),
_TEXT("invalid argument used"),
_TEXT("numeric value already set"),
NULL}

Definition at line 367 of file shell.cpp.

Referenced by ucommon::shell::errmsg().

◆ mutex_indexing

unsigned ucommon::mutex_indexing = 1
static

◆ mutex_table

mutex_index* ucommon::mutex_table = &single_table
static

◆ numeric_mode

shell::numeric_t ucommon::numeric_mode = shell::NO_NUMERIC
static

Definition at line 108 of file shell.cpp.

Referenced by ucommon::shell::getargv(), and ucommon::shell::setNumeric().

◆ numeric_value

long ucommon::numeric_value = 0l
static

◆ ofirst

shell::Option* ucommon::ofirst = NULL
static

◆ olast

shell::Option * ucommon::olast = NULL
static

Definition at line 105 of file shell.cpp.

Referenced by ucommon::shell::Option::Option(), and ucommon::shell::Option::reset().

◆ private_locks

mutex_t* ucommon::private_locks = NULL
static

Definition at line 27 of file secure.cpp.

Referenced by ssl_lock().

◆ query_family

int ucommon::query_family = 0
static

Definition at line 111 of file socket.cpp.

Referenced by ucommon::Socket::query(), and setfamily().

◆ release_later

__EXPORT TypeRelease ucommon::release_later

◆ rwlock_indexing

unsigned ucommon::rwlock_indexing = 1
static

◆ rwlock_table

◆ secure_release

__EXPORT TypeRelease ucommon::secure_release

◆ servmutex

mutex ucommon::servmutex
static

Definition at line 127 of file socket.cpp.

Referenced by getaddrinfo(), and getnameinfo().

◆ single_rwlock

rwlock_index ucommon::single_rwlock
static

Definition at line 77 of file thread.cpp.

◆ single_table

mutex_index ucommon::single_table
static

Definition at line 79 of file thread.cpp.

◆ symlock

mutex_t ucommon::symlock
static

◆ system_prefix

const char* ucommon::system_prefix = UCOMMON_PREFIX
static

Definition at line 1419 of file shell.cpp.

Referenced by ucommon::shell::path(), and ucommon::shell::relocate().

◆ threadmap

pthread_key_t ucommon::threadmap
static

Definition at line 83 of file thread.cpp.

Referenced by ucommon::Thread::get(), ucommon::Thread::init(), and ucommon::Thread::map().

◆ v6only

ucommon::_TEXT
const char * _TEXT(const char *s)
Definition: shell.h:911