Perl Cd Bookshelf [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Perl Cd Bookshelf [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید



8.155. Net::hostent


Overrides the core
gethostbyname and gethostbyaddr
functions with object-oriented versions that return Net::hostent
objects. The objects have methods that return the fields of the same
name from the hostent structure in
netdb.h:































Field


Description


addr


Address of host, for backward compatibility


addr_list


List of addresses returned from name server


addrtype


Host address type


aliases


List of aliases


length


Length of address


name


Name of host

You can access the structure fields with the methods or by importing
the fields into your namespace with the :FIELDS import tag and
accessing them by prepending h_ to the field name:

$host_obj->name( )
$h_name

Net::hostent exports the following.

gethost


gethost (host)

Frontend for gethostbyaddr and
gethostbyname. If hostis numeric, calls gethostbyaddr; otherwise, calls
gethostbyname.

gethostbyaddr


gethostbyaddr (addr, addrtype)

Returns information about the host with address
addr of type
addrtype.

gethostbyname


gethostbyname (hostname)

Returns information about the host with name
hostname.



8.154. Net::FTP8.156. Net::netent




Copyright © 2002 O'Reilly & Associates. All rights reserved.

/ 875