|
feisty meow concerns codebase
2.140
|
#include <machine_uid.h>


Public Types | |
| enum | known_location_types { INVALID_LOCATION , TCPIP_LOCATION , IPX_LOCATION , NETBIOS_LOCATION } |
Public Member Functions | |
| machine_uid () | |
| machine_uid (known_location_types type, const basis::byte_array &address) | |
| machine_uid (const machine_uid &to_copy) | |
| virtual | ~machine_uid () |
| known_location_types | type () const |
| bool | valid () const |
| machine_uid & | operator= (const machine_uid &to_copy) |
| void | reset (known_location_types type, const basis::byte_array &address) |
| basis::astring | text_form () const |
| basis::astring | compact_form () const |
| basis::byte_array | native () const |
| bool | operator== (const machine_uid &to_compare) const |
| virtual int | packed_size () const |
| Estimates the space needed for the packed structure. More... | |
| virtual void | pack (basis::byte_array &packed_form) const |
| Creates a packed form of the packable object in "packed_form". More... | |
| virtual bool | unpack (basis::byte_array &packed_form) |
| Restores the packable from the "packed_form". More... | |
| const basis::byte_array & | raw () const |
Static Public Member Functions | |
| static const basis::astring & | type_name (known_location_types type) |
| static machine_uid | expand (const basis::astring &compacted) |
Definition at line 42 of file machine_uid.h.
| Enumerator | |
|---|---|
| INVALID_LOCATION | |
| TCPIP_LOCATION | |
| IPX_LOCATION | |
| NETBIOS_LOCATION | |
Definition at line 45 of file machine_uid.h.
| sockets::machine_uid::machine_uid | ( | ) |
Definition at line 33 of file machine_uid.cpp.
References INVALID_LOCATION.
| sockets::machine_uid::machine_uid | ( | known_location_types | type, |
| const basis::byte_array & | address | ||
| ) |
Definition at line 37 of file machine_uid.cpp.
References type().
| sockets::machine_uid::machine_uid | ( | const machine_uid & | to_copy | ) |
Definition at line 45 of file machine_uid.cpp.
|
virtual |
Definition at line 50 of file machine_uid.cpp.
References basis::WHACK().
| astring sockets::machine_uid::compact_form | ( | ) | const |
Definition at line 99 of file machine_uid.cpp.
Referenced by cromp::cromp_common::chew_hostname().
|
static |
Definition at line 106 of file machine_uid.cpp.
References basis::array< contents >::reset().
| byte_array sockets::machine_uid::native | ( | ) | const |
Definition at line 154 of file machine_uid.cpp.
References basis::array< contents >::last(), basis::array< contents >::length(), and basis::array< contents >::subarray().
| machine_uid & sockets::machine_uid::operator= | ( | const machine_uid & | to_copy | ) |
Definition at line 76 of file machine_uid.cpp.
| bool sockets::machine_uid::operator== | ( | const machine_uid & | to_compare | ) | const |
Definition at line 114 of file machine_uid.cpp.
References basis::array< contents >::get(), and basis::array< contents >::length().
|
virtual |
Creates a packed form of the packable object in "packed_form".
This must append to the data in "packed_form" rather than clearing prior contents.
Implements basis::packable.
Definition at line 136 of file machine_uid.cpp.
References structures::attach(), and basis::array< contents >::length().
|
virtual |
Estimates the space needed for the packed structure.
Implements basis::packable.
Definition at line 131 of file machine_uid.cpp.
References basis::array< contents >::length(), and structures::PACKED_SIZE_INT32.
| const byte_array & sockets::machine_uid::raw | ( | ) | const |
Definition at line 59 of file machine_uid.cpp.
Referenced by sockets::machine_uid_array::member().
| void sockets::machine_uid::reset | ( | known_location_types | type, |
| const basis::byte_array & | address | ||
| ) |
Definition at line 52 of file machine_uid.cpp.
References basis::array< contents >::reset(), and type().
Referenced by sockets::internet_machine_uid::internet_machine_uid().
| astring sockets::machine_uid::text_form | ( | ) | const |
Definition at line 83 of file machine_uid.cpp.
References basis::array< contents >::get(), basis::array< contents >::length(), TCPIP_LOCATION, type(), and type_name().
Referenced by cromp::cromp_common::chew_hostname().
| machine_uid::known_location_types sockets::machine_uid::type | ( | ) | const |
Definition at line 125 of file machine_uid.cpp.
References basis::array< contents >::get(), INVALID_LOCATION, and basis::array< contents >::length().
Referenced by machine_uid(), reset(), text_form(), type_name(), and valid().
|
static |
Definition at line 61 of file machine_uid.cpp.
References IPX_LOCATION, NETBIOS_LOCATION, TCPIP_LOCATION, and type().
Referenced by text_form().
|
virtual |
Restores the packable from the "packed_form".
This object becomes the unpacked form, and therefore must lose any of its prior contents that depend on the data in "packed_form". This is up to the derived unpack function to figure out. The "packed_form" is modified by extracting all of the pieces that are used for this object; the remainder stays in "packed_form". true is returned if the unpacking was successful.
Implements basis::packable.
Definition at line 142 of file machine_uid.cpp.
References structures::detach(), basis::array< contents >::length(), basis::array< contents >::subarray(), and basis::array< contents >::zap().
|
inline |
Definition at line 68 of file machine_uid.h.
References INVALID_LOCATION, and type().
Referenced by sockets::range_limiter::add(), cromp::cromp_common::decode_host(), sockets::range_limiter::is_allowed(), sockets::machine_uid_array::member(), and sockets::range_limiter::remove().