tailieunhanh - Lecture Object Oriented Programing - Chapter 24: Networking

In chapter 24 you will learn: To understand Java networking with URLs, sockets and datagrams; to implement Java networking applications by using sockets and datagrams; to understand how to implement Java clients and servers that communicate with one another; to understand how to implement network-based collaborative applications; to construct a multithreaded server. | 24 Networking If the presence of electricity can be made visible in any part of a circuit, I see no reason why intelligence may not be transmitted instantaneously by electricity. Samuel F. B. Morse Protocol is everything. Francois Giuliani What networks of railroads, highways and canals were in another age, the networks of telecommunications, information and computerization are today. Bruno Kreisky The port is near, the bells I hear, the people all exulting. Walt Whitman OBJECTIVES In this chapter you will learn: To understand Java networking with URLs, sockets and datagrams. To implement Java networking applications by using sockets and datagrams. To understand how to implement Java clients and servers that communicate with one another. To understand how to implement network-based collaborative applications. To construct a multithreaded server. Introduction Manipulating URLs Reading a File on a Web Server Establishing a Simple Server . | 24 Networking If the presence of electricity can be made visible in any part of a circuit, I see no reason why intelligence may not be transmitted instantaneously by electricity. Samuel F. B. Morse Protocol is everything. Francois Giuliani What networks of railroads, highways and canals were in another age, the networks of telecommunications, information and computerization are today. Bruno Kreisky The port is near, the bells I hear, the people all exulting. Walt Whitman OBJECTIVES In this chapter you will learn: To understand Java networking with URLs, sockets and datagrams. To implement Java networking applications by using sockets and datagrams. To understand how to implement Java clients and servers that communicate with one another. To understand how to implement network-based collaborative applications. To construct a multithreaded server. Introduction Manipulating URLs Reading a File on a Web Server Establishing a Simple Server Using Stream Sockets Establishing a Simple Client Using Stream Sockets Client/Server Interaction with Stream Socket Connections Connectionless Client/Server Interaction with Datagrams Client/Server Tic-Tac-Toe Using a Multithreaded Server Security and the Network Wrap-Up Introduction Networking package is Stream-based communications Applications view networking as streams of data Connection-based protocol Uses TCP (Transmission Control Protocol Packet-based communications Individual packets transmitted Connectionless service Uses UDP (User Datagram Protocol) Introduction (Cont.) Client-server relationship Client requests some action be performed Server performs the action and responds to client Request-response model Common implementation: Web browsers and Web servers Performance Tip Connectionless services generally offer greater performance but less reliability than connection-oriented services. TCP, UDP

TÀI LIỆU MỚI ĐĂNG
crossorigin="anonymous">
Đã 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.