Struct Domain

Thin wrapper around a string, used for domain name serialization

struct Domain ;

Fields

NameTypeDescription
value const(char)[]The domain name

Methods

NameDescription
byLabel ()
checkLabel (label) Verify that a label only contains allowed character
fromBinary (ctx) Support for network deserialization
fromSafeString (v) Construct an instance of a Domain from a previously validated string
fromString (v) Construct an instance of a Domain from user input
serialize (dg) Support for network deserialization
serviceAndProtocolLabels () Get service and protocol labels
toString ()

Aliases

NameDescription
ServiceProtoTuple Tuple for service and protocol labels