Class: DNSSD::Reply
- Inherits:
-
Object
- Object
- DNSSD::Reply
- Defined in:
- ext/rdnssd_structs.c,
ext/rdnssd_structs.c
Overview
DNSSD::Reply is used to return information
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
The service domain.
-
#flags ⇒ Object
readonly
Flags describing the reply.
-
#fullname ⇒ Object
readonly
The full service domain name, in the form “<servicename>.<protocol>.<domain>.”.
-
#interface ⇒ Object
readonly
The interface on which the service is available.
-
#name ⇒ Object
readonly
The service name.
-
#port ⇒ Object
readonly
The port on which connections are accepted for this service.
-
#service ⇒ Object
readonly
The service associated with the reply.
-
#target ⇒ Object
readonly
The target hostname of the machine providing the service.
-
#text_record ⇒ Object
readonly
The service’s primary text record, see DNSSD::TextRecord for more information.
-
#type ⇒ Object
readonly
The service type.
Instance Method Summary collapse
Constructor Details
#DNSSD::Reply.new ⇒ raises a RuntimeError
569 570 571 572 573 574 |
# File 'ext/rdnssd_structs.c', line 569
static VALUE
reply_initialize(int argc, VALUE *argv, VALUE reply)
{
dnssd_instantiation_error(rb_obj_classname(reply));
return Qnil;
}
|
Instance Attribute Details
#domain ⇒ Object (readonly)
The service domain.
#flags ⇒ Object (readonly)
Flags describing the reply. See DNSSD::Flags for more information.
#fullname ⇒ Object (readonly)
The full service domain name, in the form “<servicename>.<protocol>.<domain>.”. (Any literal dots (“.”) are escaped with a backslash (“.”), and literal backslashes are escaped with a second backslash (“\”), e.g. a web server named “Dr. Pepper” would have the fullname “Dr.032Pepper._http._tcp.local.”.) See DNSSD::Service.fullname() for more information.
#interface ⇒ Object (readonly)
The interface on which the service is available. (Used only by DNSSSD.resolve().)
#name ⇒ Object (readonly)
The service name. (Not used by DNSSD.enumerate_domains().)
#port ⇒ Object (readonly)
The port on which connections are accepted for this service.
#service ⇒ Object (readonly)
The service associated with the reply. See DNSSD::Service for more information.
#target ⇒ Object (readonly)
The target hostname of the machine providing the service. This name can be passed to functions like Socket.gethostbyname() to identify the host’s IP address.
#text_record ⇒ Object (readonly)
The service’s primary text record, see DNSSD::TextRecord for more information.
#type ⇒ Object (readonly)
The service type. (Not used by DNSSD.enumerate_domains().)
Instance Method Details
#inspect ⇒ String
557 558 559 560 561 562 |
# File 'ext/rdnssd_structs.c', line 557
static VALUE
reply_inspect(VALUE self)
{
VALUE fullname = rb_ivar_get(self, dnssd_iv_fullname);
return dnssd_struct_inspect(self, StringValue(fullname));
}
|