Section 23.1. Introduction


23.1. Introduction

There is much excitement about the Internet and the Web. The Internet ties the information world together. The Web makes the Internet easy to use and gives it the flair and sizzle of multimedia. Organizations see the Internet and the Web as crucial to their informationsystems strategies. The .NET FCL provides a number of built-in networking capabilities that make it easy to develop Internet- and Web-based applications. Programs can search the world for information and collaborate with programs running on other computers internationally, nationally or just within an organization.

In Chapter 21, ASP.NET 2.0, Web Forms and Web Controls, and Chapter 22, Web Services, we began our presentation of .NET's networking and distributed-computing capabilities. We discussed ASP.NET, Web Forms and Web serviceshigh-level networking technologies that enable programmers to develop distributed applications. In this chapter, we focus on the underlying networking technologies that support .NET's ASP.NET and Web services capabilities.

The chapter begins with an overview of the communication techniques and technologies used to transmit data over the Internet. Next, we present the basic concepts of establishing a connection between two applications using streams of data that are similar to file I/O. This connection-oriented approach enables programs to communicate with one another as easily as writing to, and reading from, files on disk. Then we present a simple chat application that uses these techniques to send messages between a client and a server. The chapter continues with a presentation and an example of connectionless techniques for transmitting data between applicationsthis approach is less reliable than establishing a connection between the applications, but much more efficient. Such techniques are typically used in applications such as streaming audio and video over the Internet. Next we present an example of a client-server Tic-Tac-Toe game that demonstrates how to create a simple multithreaded server. Then we demonstrate the new WebBrowser class for adding Web browsing capabilities to any application. The chapter concludes with a brief introduction to .NET remoting, which, like Web services (Chapter 22), enables distributed computing over networks.



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net