TAILIEUCHUNG - Professional C# Third Edition phần 9

đại diện cho một địa chỉ IP. Địa chỉ chính nó là có sẵn như là tài sản địa chỉ, và có thể được chuyển đổi sang một định dạng số thập phân rải rác với phương thức ToString (). IPAddress cũng thực hiện một phương pháp phân tích cú pháp () tĩnh, hiệu quả thực hiện việc chuyển đổi ngược lại ToString () chuyển đổi từ một chuỗi số thập phân rải rác | Chapter 31 ----Simpo PDF Merge and Split Unregistered Version - http IPAddress IPAddress represents an IP address. The address itself is available as the Address property and may be converted to a dotted decimal format with the ToString method. iPAddress also implements a static Parse method which effectively performs the reverse conversion of ToString converting from a dotted decimal string to an IPAddress. IPAddress ipAddress long address string ipString In the previous example the long integer address is assigned 156121322 and the string ipString is assigned the text . IPAddress also provides a number of constant static fields to return special addresses. For example the Loopback address allows a machine to send messages to itself while the Broadcast address allows multicasting to the local network. The following line will set loopback to . the loopback address indicates the local host. string loopback The following line will set broadcast address to . the broadcast address is used to send a message to all machines on the local network. string broadcast IPHostEntry The iPHostEntry class encapsulates information relating to a particular host computer. This class makes the host name available via the HostName property which returns a string and the AddressList property returns an array of IPAddress objects. We are going to use the IPHostEntry class in the in next example DNSLookupResolver. Dns The Dns class is able to communicate with your default DNS server in order to retrieve IP addresses. The two important static methods are Resolve which uses the DNS server to obtain the details of a host with a given host name and GetHostByAddress which also returns details of the host but this time using the IP address. Both methods return an IPHostEntry object. IPHostEntry wroxHost .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.