TAILIEUCHUNG - Foundations of Python Network Programming 2nd edition phần 3

để làm việc với các container kiểm soát Làm thế nào để tạo và hiển thị các hộp tin nhắn Tạo một dự án CLR mới bằng cách sử dụng mẫu Windows Mẫu đơn đăng ký và giao Ex22_01 tên cho dự án. Bạn sẽ phát triển Ex22_01 vào một chương trình để tạo ra các mục xổ số kiến thiết. | CHAPTER 4 SOCKET NAMES AND DNS In general an FQDN may be used to identify a host from anywhere else on the Internet. Bare hostnames by contrast work as relative names only if you are already inside the organization and using their own nameservers a concept we discuss later in this chapter to resolve names on your desktop laptop or server. Thus athena should work as an abbreviation for if you are actually on the MIT campus but it will not work if you are anywhere else in the world unless you have configured your system to always try MIT hostnames first which would be unusual but maybe you are on their staff or something. Socket Names The last two chapters have already introduced you to the fact that sockets cannot be named with a single primitive Python value like a number or string. Instead both TCP and UDP use integer port numbers to share a single machine s IP address among the many different applications that might be running there and so the address and port number have to be combined in order to produce a socket name like this 80 While you might have been able to pick up some scattered facts about socket names from the last few chapters like the fact that the first item can be either a hostname or a dotted IP address it is time for us to approach the whole subject in more depth. You will recall that socket names are important at several points in the creation and use of sockets. For your reference here are all of the major socket methods that demand of you some sort of socket name as an argument Each time this is called on a listening TCP stream socket that has incoming connections ready to hand off to the application it returns a tuple whose second item is the remote address that has connected the first item in the tuple is the net socket connected to that remote address . address Assigns the socket the local address so that outgoing packets have an address from which to originate and so that any .

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.